From 8fb4415e6dae99a6fa710106fa086cea8b34182d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 11 Nov 2008 17:46:49 +0000 Subject: Make FindPortdir() return (None, None, None) on failure, instead of raising a potentially ambiguous ValueError. svn path=/main/trunk/; revision=11853 --- bin/repoman | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-1-g7c22