Fix from ferringb
authorAlec Warner <antarus@gentoo.org>
Sun, 5 Aug 2007 21:30:50 +0000 (21:30 -0000)
committerAlec Warner <antarus@gentoo.org>
Sun, 5 Aug 2007 21:30:50 +0000 (21:30 -0000)
svn path=/main/trunk/; revision=7578

pym/portage/util.py

index 894ea44a0ffb122b41da4bf313ef3a3ebf54fa1e..a7c8a954a39f66603c918c718a832a99e6e8d755 100644 (file)
@@ -246,7 +246,7 @@ def grabfile_package(myfilename, compatlevel=0, recursive=0):
        pkgs=grabfile(myfilename, compatlevel, recursive=recursive)
        for x in range(len(pkgs)-1, -1, -1):
                pkg = pkgs[x]
-               if pkg[0] in  ["-","*"]: # -atom *pkg for packages file
+               if pkg[0] in '-*': # -atom *pkg for packages file
                        pkg = pkg[1:]
                if not isvalidatom(pkg):
                        writemsg("--- Invalid atom in %s: %s\n" % (myfilename, pkgs[x]),