summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-08-05 21:30:50 +0000
committerAlec Warner <antarus@gentoo.org>2007-08-05 21:30:50 +0000
commit0151d694ee281fbb09fb64c2c0bf10652581914b (patch)
treea84efa1526c731178af1fa1dd0a6a54ab9214b70
parent21ffad15e22b1704de54ab38e609ccf56610998c (diff)
downloadportage-0151d694ee281fbb09fb64c2c0bf10652581914b.tar.gz
portage-0151d694ee281fbb09fb64c2c0bf10652581914b.tar.bz2
portage-0151d694ee281fbb09fb64c2c0bf10652581914b.zip
Fix from ferringb
svn path=/main/trunk/; revision=7578
-rw-r--r--pym/portage/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 894ea44a0..a7c8a954a 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -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]),