From b80eb88971a1c775c3c227c8a593a667ea6041bc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 30 Jan 2010 22:49:12 +0000 Subject: [PATCH] Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert for reporting. svn path=/main/trunk/; revision=15294 --- bin/repoman | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/repoman b/bin/repoman index 95a44f0ff..857f4612e 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() -- 2.26.2