From: Zac Medico Date: Tue, 30 Aug 2011 02:09:13 +0000 (-0700) Subject: dblink.treewalk: remove dowgrade check X-Git-Tag: v2.2.0_alpha52~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=290108eeb6ddf01efcafcca9bdb9e109ce9af009;p=portage.git dblink.treewalk: remove dowgrade check This code is unused since commit a37eb8ebd2fad3f8074490a061f067e2c637f05d. --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index afcbceb55..1a38d421a 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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()