Warn and ignore on invalid system/world atoms
authorJason Stubbs <jstubbs@gentoo.org>
Mon, 3 Oct 2005 13:33:14 +0000 (13:33 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Mon, 3 Oct 2005 13:33:14 +0000 (13:33 -0000)
svn path=/main/branches/2.0/; revision=2082

bin/emerge

index b70c5312a2c88ddaa233082ed4d3327f2c8f294b..a89dab7863e78a532b8fa385585f8f245914fa75 100755 (executable)
@@ -860,6 +860,9 @@ def getlist(mode):
                        if myline[0]!="*":
                                continue
                        myline=myline[1:]
+               if not portage.isvalidatom(myline):
+                       print "!!! Invalid atom '%s' in your '%s' file" % (myline, mode)
+                       continue
                mynewlines.append(myline.strip())
 
        # Remove everything that is package.provided from our list