diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-23 02:19:22 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-23 02:19:22 +0000 |
commit | f75b60995bf4da057708e3f79f6b097c16996366 (patch) | |
tree | 6a3347b8fdfdafc144dfbb7e94f97fb82821fce3 | |
parent | fa10179b227539db3ea0cac5cdafe30cf99bced2 (diff) | |
download | portage-f75b60995bf4da057708e3f79f6b097c16996366.tar.gz portage-f75b60995bf4da057708e3f79f6b097c16996366.tar.bz2 portage-f75b60995bf4da057708e3f79f6b097c16996366.zip |
Fix argument validation to allow file paths. Thanks to Arfrever for reporting.
(trunk r13140)
svn path=/main/branches/2.1.6/; revision=13157
-rw-r--r-- | pym/_emerge/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 6b26f594e..67ec6de0e 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -15178,6 +15178,13 @@ def emerge_main(): if x.startswith(SETPREFIX) or \ is_valid_package_atom(x): continue + if x[:1] == os.sep: + continue + try: + os.lstat(x) + continue + except OSError: + pass msg = [] msg.append("'%s' is not a valid package atom." % (x,)) msg.append("Please check ebuild(5) for full details.") |