Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11458 - main/trunk/bin
Date: Sat, 23 Aug 2008 09:29:25
Message-Id: E1KWpQx-0002Ot-6g@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-08-23 09:29:22 +0000 (Sat, 23 Aug 2008)
3 New Revision: 11458
4
5 Modified:
6 main/trunk/bin/portageq
7 Log:
8 Fix the loop in filter_protected() to continue when necessary due to an
9 error.
10
11
12 Modified: main/trunk/bin/portageq
13 ===================================================================
14 --- main/trunk/bin/portageq 2008-08-23 09:20:24 UTC (rev 11457)
15 +++ main/trunk/bin/portageq 2008-08-23 09:29:22 UTC (rev 11458)
16 @@ -299,6 +299,7 @@
17 err.write("ERROR: cwd does not exist!\n")
18 err.flush()
19 errors += 1
20 + continue
21 f = os.path.join(cwd, f)
22 f = portage.normalize_path(f)
23
24 @@ -306,6 +307,7 @@
25 err.write("ERROR: file paths must begin with <root>!\n")
26 err.flush()
27 errors += 1
28 + continue
29
30 if protect_obj.isprotected(f):
31 protected += 1