diff options
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 0c808df06..0c348bd48 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -643,7 +643,7 @@ def env_update(makelinks=1, srcroot=None): mtime_changed = True if mtime_changed: - if makelinks or srcroot is None: + if srcroot is None: ld_cache_update = True continue src_dir = os.path.join(srcroot, x.lstrip(os.sep)) @@ -656,7 +656,7 @@ def env_update(makelinks=1, srcroot=None): break # Only run ldconfig as needed - if ld_cache_update: + if (ld_cache_update or makelinks): # ldconfig has very different behaviour between FreeBSD and Linux if ostype=="Linux" or ostype.lower().endswith("gnu"): # We can't update links if we haven't cleaned other versions first, as |