1 |
Author: zmedico |
2 |
Date: 2009-03-23 02:19:22 +0000 (Mon, 23 Mar 2009) |
3 |
New Revision: 13157 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.6/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Fix argument validation to allow file paths. Thanks to Arfrever for reporting. |
9 |
(trunk r13140) |
10 |
|
11 |
Modified: main/branches/2.1.6/pym/_emerge/__init__.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.6/pym/_emerge/__init__.py 2009-03-23 02:18:55 UTC (rev 13156) |
14 |
+++ main/branches/2.1.6/pym/_emerge/__init__.py 2009-03-23 02:19:22 UTC (rev 13157) |
15 |
@@ -15178,6 +15178,13 @@ |
16 |
if x.startswith(SETPREFIX) or \ |
17 |
is_valid_package_atom(x): |
18 |
continue |
19 |
+ if x[:1] == os.sep: |
20 |
+ continue |
21 |
+ try: |
22 |
+ os.lstat(x) |
23 |
+ continue |
24 |
+ except OSError: |
25 |
+ pass |
26 |
msg = [] |
27 |
msg.append("'%s' is not a valid package atom." % (x,)) |
28 |
msg.append("Please check ebuild(5) for full details.") |