a potentially ambiguous ValueError.
svn path=/main/trunk/; revision=11853
# 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
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"]