--- portage.py-2002520 Mon May 20 21:53:44 2002 +++ portage.py Tue May 21 16:31:01 2002 @@ -62,6 +62,7 @@ import signal import time import missingos +import estatus try: import fchksum @@ -2511,6 +2512,20 @@ matches=self.dep_nomatch(x) for y in matches: self.zap(y) + #now mask leftover ebuilds in the tree according to their status + StabLevel=settings["STABILITY_LEVEL"] + if not StabLevel:StabLevel="approved" + for pkgKey in self.tree.keys(): + pkgStatus=estatus.pkgStatus(self.portroot+'/'+pkgKey) + for x in self.tree[pkgKey]: + if x[1][3]=="r0": + PVR=x[1][2] + else: + PVR=x[1][2]+"-"+x[1][3] + + if not pkgStatus[PVR].isAllowed(StabLevel): + self.zap(x[0]) + def getdeps(self,pf): "returns list of dependencies, if any"