diff options
-rwxr-xr-x | bin/repoman | 5 | ||||
-rw-r--r-- | pym/repoman/utilities.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman index 5db3b6077..f9900781a 100755 --- a/bin/repoman +++ b/bin/repoman @@ -481,9 +481,8 @@ if options.mode in ('last', 'lfull'): # commit (like if Manifest generation fails). can_force = True -try: - portdir, portdir_overlay, mydir = utilities.FindPortdir(repoman_settings) -except ValueError: +portdir, portdir_overlay, mydir = utilities.FindPortdir(repoman_settings) +if portdir is None: sys.exit(1) vcs = None 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"] |