--- portage/pym/portage.py 2005-11-11 16:00:06.000000000 +0200 +++ portage.az/pym/portage.py 2005-11-11 16:03:37.000000000 +0200 @@ -6430,6 +6430,9 @@ writemsg("!!! FAILED postrm: "+str(a)+"\n") sys.exit(123) + #update environment settings, library paths. Change symlinks. + env_update(makelinks=1) + self.unlockdb() def isowner(self,filename,destroot): @@ -6672,13 +6675,10 @@ writemsg("!!! FAILED postinst: "+str(a)+"\n") sys.exit(123) - downgrade = False - for v in otherversions: - if pkgcmp(catpkgsplit(self.pkg)[1:], catpkgsplit(v)[1:]) < 0: - downgrade = True - #update environment settings, library paths. DO NOT change symlinks. - env_update(makelinks=(not downgrade)) + #only needed if we did not already run unmerge + if not (oldcontents): + env_update(makelinks=0) #dircache may break autoclean because it remembers the -MERGING-pkg file global dircache if dircache.has_key(self.dbcatdir):