self.vartree.dbapi._fs_lock()
try:
#update environment settings, library paths. DO NOT change symlinks.
- env_update(makelinks=(not downgrade),
+ env_update(
target_root=self.settings['ROOT'], prev_mtimes=prev_mtimes,
contents=contents, env=self.settings,
writemsg_level=self._display_merge)
raise
oldld = None
- ld_cache_update=False
+ ldsoconf_update = False
newld = specials["LDPATH"]
if (oldld != newld):
for x in specials["LDPATH"]:
myfd.write(x + "\n")
myfd.close()
- ld_cache_update=True
+ ldsoconf_update = True
# Update prelink.conf if we are prelink-enabled
if prelink_capable:
prev_mtimes[x] = newldpathtime
mtime_changed = True
- if mtime_changed:
- ld_cache_update = True
-
if makelinks and \
- not ld_cache_update and \
+ not mtime_changed and \
contents is not None:
libdir_contents_changed = False
for mypath, mydata in contents.items():
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"])
# Only run ldconfig as needed
- if (ld_cache_update or makelinks) and ldconfig and not eprefix:
+ if makelinks and ldconfig and not eprefix:
# 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