From: Zac Medico Date: Wed, 6 Dec 2006 19:36:05 +0000 (-0000) Subject: Remove unused depgraph.is_newer_ver_installed() method. X-Git-Tag: v2.1.2~394 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f3ccb09f2caa4d968c0b18bd68dd23cc0b2a2511;p=portage.git Remove unused depgraph.is_newer_ver_installed() method. svn path=/main/trunk/; revision=5180 --- diff --git a/bin/emerge b/bin/emerge index 823cbaa2c..603d4213a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1147,19 +1147,6 @@ class depgraph: # We're true here unless we are missing binaries. return (not missing,myfavorites) - def is_newer_ver_installed(self,myroot,pkg,pkgver): - "if there is a version of pkg installed newer than pkgver, return it" - vardbapi = self.trees[myroot]["vartree"].dbapi - - matches = self.trees[myroot]["vartree"].dbapi.match(pkg) - if matches: - myslot = self.trees[myroot]["porttree"].getslot(pkgver) - for match in matches: - if portage.pkgcmp(portage.catpkgsplit(pkgver)[1:], portage.catpkgsplit(match)[1:]) < 0: - curslot = self.trees[myroot]["vartree"].getslot(match) - if curslot == myslot: - return match - def select_dep(self, myroot, depstring, myparent=None, arg=None, myuse=None, raise_on_missing=False, priority=DepPriority(), rev_deps=False, parent_arg=None):