fixed 'equery belongs' for injected and metapackages
authorgenone <genone@gentoo.org>
Mon, 26 Jan 2004 17:30:05 +0000 (17:30 -0000)
committergenone <genone@gentoo.org>
Mon, 26 Jan 2004 17:30:05 +0000 (17:30 -0000)
svn path=/; revision=74

trunk/src/equery/equery

index b94234ebbdb748ce20fb84102c612aeeba8611ff..3978ccf102825b0b9d6fccbe579bf98ec1229810 100755 (executable)
@@ -203,6 +203,9 @@ class CmdListBelongs(Command):
 
                found = 0
                for pkg in matches:
+                       # ignore meta ebuilds and injected packages
+                       if not cnt:
+                               continue
                        cnt = pkg.get_contents()
                        for file in cnt.keys():
                                if rx.search(file):