From c642d0812cb9daaef55ad3d5b12de7631ea44e36 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 5 Apr 2006 01:48:54 +0000 Subject: [PATCH] Remove the srcroot parameter from env_update because is doesn't work when portage.movefile merges files via os.rename. To do this properly we need to pass in CONTENTS instead. svn path=/main/trunk/; revision=3074 --- pym/portage.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index 8f624be0c..484738834 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -507,7 +507,7 @@ endversion_keys = ["pre", "p", "alpha", "beta", "rc"] #parse /etc/env.d and generate /etc/profile.env -def env_update(makelinks=1, srcroot=None): +def env_update(makelinks=1): global root if not os.path.exists(root+"etc/env.d"): prevmask=os.umask(0) @@ -645,17 +645,7 @@ def env_update(makelinks=1, srcroot=None): mtime_changed = True if mtime_changed: - if srcroot is None: - ld_cache_update = True - continue - src_dir = os.path.join(srcroot, x.lstrip(os.sep)) - if not os.path.exists(src_dir): - ld_cache_update = True - continue - for parent_dir, dirs, files in os.walk(src_dir): - if len(files) > 0: - ld_cache_update = True - break + ld_cache_update = True # Only run ldconfig as needed if (ld_cache_update or makelinks): @@ -6045,7 +6035,7 @@ class dblink: downgrade = True #update environment settings, library paths. DO NOT change symlinks. - env_update(makelinks=(not downgrade),srcroot=srcroot) + env_update(makelinks=(not downgrade)) #dircache may break autoclean because it remembers the -MERGING-pkg file global dircache if dircache.has_key(self.dbcatdir): -- 2.26.2