Fix the loop in filter_protected() to continue when necessary due to an
authorZac Medico <zmedico@gentoo.org>
Sat, 23 Aug 2008 09:29:22 +0000 (09:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Aug 2008 09:29:22 +0000 (09:29 -0000)
error.

svn path=/main/trunk/; revision=11458

bin/portageq

index 24291c395526e7faa98fecd3413572c4b66c698b..a7a97913910985e24b66d3d52961d6b2e9cd8622 100755 (executable)
@@ -299,6 +299,7 @@ def filter_protected(argv):
                                err.write("ERROR: cwd does not exist!\n")
                                err.flush()
                                errors += 1
+                               continue
                        f = os.path.join(cwd, f)
                        f = portage.normalize_path(f)
 
@@ -306,6 +307,7 @@ def filter_protected(argv):
                        err.write("ERROR: file paths must begin with <root>!\n")
                        err.flush()
                        errors += 1
+                       continue
 
                if protect_obj.isprotected(f):
                        protected += 1