From: Zac Medico Date: Tue, 2 Mar 2010 19:50:13 +0000 (-0000) Subject: Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert X-Git-Tag: v2.1.8~189 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bedbdce7f2d62a0d195c093b3d84218c279db0b;p=portage.git Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert for reporting. (trunk r15294) svn path=/main/branches/2.1.7/; revision=15533 --- 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()