diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-11 17:46:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-11 17:46:49 +0000 |
commit | 8fb4415e6dae99a6fa710106fa086cea8b34182d (patch) | |
tree | 4f98d0a9457b00348264b73966128f04383264ce /pym | |
parent | afaf07935f49bf256fadf8f2d5337073c9036112 (diff) | |
download | portage-8fb4415e6dae99a6fa710106fa086cea8b34182d.tar.gz portage-8fb4415e6dae99a6fa710106fa086cea8b34182d.tar.bz2 portage-8fb4415e6dae99a6fa710106fa086cea8b34182d.zip |
Make FindPortdir() return (None, None, None) on failure, instead of raising
a potentially ambiguous ValueError.
svn path=/main/trunk/; revision=11853
Diffstat (limited to 'pym')
-rw-r--r-- | pym/repoman/utilities.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index cc654154c..807ff1ba9 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -393,7 +393,7 @@ def FindPortdir(settings): msg = 'Repoman is unable to determine PORTDIR or PORTDIR_OVERLAY' + \ ' from the current working directory' logging.critical(msg) - raise ValueError(msg) + return (None, None, None) if not portdir: portdir = settings["PORTDIR"] |