summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 19:50:13 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 19:50:13 +0000
commit8bedbdce7f2d62a0d195c093b3d84218c279db0b (patch)
tree6008c15270f905e32d7c34966ce5c0c14b8e9171 /bin
parentfe4a78c9cd297701d9b9d4c2aec0299ef8fb7882 (diff)
downloadportage-8bedbdce7f2d62a0d195c093b3d84218c279db0b.tar.gz
portage-8bedbdce7f2d62a0d195c093b3d84218c279db0b.tar.bz2
portage-8bedbdce7f2d62a0d195c093b3d84218c279db0b.zip
Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert <idl0r@g.o>
for reporting. (trunk r15294) svn path=/main/branches/2.1.7/; revision=15533
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman6
1 files changed, 6 insertions, 0 deletions
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()