From 8bedbdce7f2d62a0d195c093b3d84218c279db0b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 19:50:13 +0000 Subject: Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert for reporting. (trunk r15294) svn path=/main/branches/2.1.7/; revision=15533 --- bin/repoman | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/repoman b/bin/repoman index c84079555..eecf4d650 100755 --- a/bin/repoman +++ b/bin/repoman @@ -748,6 +748,12 @@ elif repolevel==3: caterror(catdir) scanlist.append(catdir+"/"+reposplit[-1]) repo_subdir = scanlist[-1] + os.sep +else: + msg = 'Repoman is unable to determine PORTDIR or PORTDIR_OVERLAY' + \ + ' from the current working directory' + logging.critical(msg) + sys.exit(1) + repo_subdir_len = len(repo_subdir) scanlist.sort() -- cgit v1.2.3-1-g7c22