From 2d65fdca8d73cdee25da32e5a8654a766811588e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 9 Dec 2006 03:05:52 +0000 Subject: [PATCH] Remove unused depgraph.match() method. svn path=/main/trunk/; revision=5233 --- bin/emerge | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/bin/emerge b/bin/emerge index 1df00966a..768fc23d2 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1720,38 +1720,6 @@ class depgraph: return 1 - def match(self, mydep, myroot=None, mykey=None): - # support mutual exclusive deps - if myroot is None: - myroot = self.target_root - mydep2=mydep - if mydep2[0]=="!": - mydep2=mydep[1:] - - if mydep[0]=="!": - #add our blocker; it will be ignored later if necessary (if we are remerging the same pkg, for example) - myk="blocks "+myroot+" "+mydep2 - else: - myeb = self.trees[myroot]["porttree"].dep_bestmatch(mydep2) - if not myeb: - if not mykey: - print "\n!!! Error: couldn't find match for",mydep - else: - print "\n!!! Error: couldn't find match for",mydep,"in",mykey - print - sys.exit(1) - - if "--usepkg" in self.myopts: - mypk = self.trees[myroot]["bintree"].dep_bestmatch(mydep) - if myeb==mypk: - myk = " ".join(("binary", myroot, mypk)) - else: - myk = " ".join(("ebuild", myroot, myeb)) - else: - myk="ebuild "+myroot+" "+myeb - - return myk - def display(self,mylist,verbosity=None): if verbosity is None: verbosity = ("--quiet" in self.myopts and 1 or \ -- 2.26.2