make env-update a bit more flexible by adding a --no-ldconfig option
authorMike Frysinger <vapier@gentoo.org>
Fri, 27 Jan 2006 05:02:14 +0000 (05:02 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 27 Jan 2006 05:02:14 +0000 (05:02 -0000)
svn path=/main/trunk/; revision=2592

bin/env-update
pym/portage.py

index 3db5787d6ff70d39a0caa0160b55a5b6a533d4c4..d2874ae4dbe879a087493c4ed603ba019027dd30 100755 (executable)
@@ -17,6 +17,9 @@ if "-h" in sys.argv or "--help" in sys.argv:
        usage(0)
 
 makelinks=1
+if "--no-ldconfig" in sys.argv:
+       makelinks=0
+       sys.argv.pop(sys.argv.index("--no-ldconfig"))
 
 if len(sys.argv) > 1:
        print "!!! Invalid command line options!\n"
index 5c00d37c62a37022f44b5d3793c3b7f9923ecd73..0ef963058d9bc179a9efd9b97cc13c930ffd3fe1 100644 (file)
@@ -591,9 +591,6 @@ def env_update(makelinks=1):
                oldld=None
 
        ld_cache_update=False
-       if os.environ.has_key("PORTAGE_CALLER") and \
-          os.environ["PORTAGE_CALLER"] == "env-update":
-               ld_cache_update = True
 
        newld=specials["LDPATH"]
        if (oldld!=newld):