From ea99f722f51ed96481bb7a59521838160f084e2c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 27 Jan 2006 05:02:14 +0000 Subject: [PATCH] make env-update a bit more flexible by adding a --no-ldconfig option svn path=/main/trunk/; revision=2592 --- bin/env-update | 3 +++ pym/portage.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/env-update b/bin/env-update index 3db5787d6..d2874ae4d 100755 --- a/bin/env-update +++ b/bin/env-update @@ -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" diff --git a/pym/portage.py b/pym/portage.py index 5c00d37c6..0ef963058 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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): -- 2.26.2