From: Zac Medico Date: Sat, 30 Jan 2010 22:49:12 +0000 (-0000) Subject: Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert X-Git-Tag: v2.2_rc63~98 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b80eb88971a1c775c3c227c8a593a667ea6041bc;p=portage.git Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert for reporting. svn path=/main/trunk/; revision=15294 --- 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()