dblink.treewalk: remove dowgrade check
authorZac Medico <zmedico@gentoo.org>
Tue, 30 Aug 2011 02:09:13 +0000 (19:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 30 Aug 2011 02:09:13 +0000 (19:09 -0700)
This code is unused since commit
a37eb8ebd2fad3f8074490a061f067e2c637f05d.

pym/portage/dbapi/vartree.py

index afcbceb55ee007492a6c2b76e79c10a54f4161e6..1a38d421a993bd6c78844a84f0dc76b3a8333967 100644 (file)
@@ -3231,10 +3231,6 @@ class dblink(object):
                if not os.path.exists(self.dbcatdir):
                        ensure_dirs(self.dbcatdir)
 
-               otherversions = []
-               for v in self.vartree.dbapi.cp_list(self.mysplit[0]):
-                       otherversions.append(v.split("/")[1])
-
                cp = self.mysplit[0]
                slot_atom = "%s:%s" % (cp, slot)
 
@@ -3805,11 +3801,6 @@ class dblink(object):
                        showMessage(_("!!! FAILED postinst: ")+str(a)+"\n",
                                level=logging.ERROR, noiselevel=-1)
 
-               downgrade = False
-               for v in otherversions:
-                       if pkgcmp(catpkgsplit(self.pkg)[1:], catpkgsplit(v)[1:]) < 0:
-                               downgrade = True
-
                # Lock the config memory file to prevent symlink creation
                # in merge_contents from overlapping with env-update.
                self.vartree.dbapi._fs_lock()