Don't treat masked/missing atoms as being invalid.
authorJason Stubbs <jstubbs@gentoo.org>
Fri, 30 Dec 2005 09:05:35 +0000 (09:05 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Fri, 30 Dec 2005 09:05:35 +0000 (09:05 -0000)
svn path=/main/branches/2.0.54/; revision=2502

bin/emaint

index b5508652dcce9bd139b23b7d374be3c10d227cab..9fced3a9236066778de63298ebaa27fe2401adbf 100755 (executable)
@@ -16,7 +16,6 @@ class WorldHandler(object):
        def __init__(self):
                self.invalid = []
                self.not_installed = []
-               self.unavailable = []
                self.okay = []
                self.found = os.access(portage_const.WORLD_FILE, os.R_OK)
 
@@ -25,8 +24,6 @@ class WorldHandler(object):
                                self.invalid.append(atom)
                        elif not portage.db["/"]["vartree"].dbapi.match(atom):
                                self.not_installed.append(atom)
-                       elif not portage.db["/"]["porttree"].dbapi.match(atom):
-                               self.unavailable.append(atom)
                        else:
                                self.okay.append(atom)
 
@@ -35,7 +32,6 @@ class WorldHandler(object):
                if self.found:
                        errors += map(lambda x: "'%s' is not a valid atom" % x, self.invalid)
                        errors += map(lambda x: "'%s' is not installed" % x, self.not_installed)
-                       errors += map(lambda x: "'%s' has no ebuilds available" % x, self.unavailable)
                else:
                        errors.append(portage_const.WORLD_FILE + " could not be opened for reading")
                return errors