diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-04-05 01:48:54 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-04-05 01:48:54 +0000 |
commit | c642d0812cb9daaef55ad3d5b12de7631ea44e36 (patch) | |
tree | eda30d5b87b97173f2a23891c1488e244392c33b | |
parent | e8ea65295464690eaf7a1d92d6995caa4a3a13be (diff) | |
download | portage-c642d0812cb9daaef55ad3d5b12de7631ea44e36.tar.gz portage-c642d0812cb9daaef55ad3d5b12de7631ea44e36.tar.bz2 portage-c642d0812cb9daaef55ad3d5b12de7631ea44e36.zip |
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
-rw-r--r-- | pym/portage.py | 16 |
1 files 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): |