summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-30 22:49:12 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-30 22:49:12 +0000
commitb80eb88971a1c775c3c227c8a593a667ea6041bc (patch)
tree063926030ad81b0fa700ca6897685cb07a15a936 /bin/repoman
parentFix: change os.mkdir to os.makedirs in case of there are more than one direct... (diff)
downloadportage-idfetch-b80eb88971a1c775c3c227c8a593a667ea6041bc.tar.gz
portage-idfetch-b80eb88971a1c775c3c227c8a593a667ea6041bc.tar.bz2
portage-idfetch-b80eb88971a1c775c3c227c8a593a667ea6041bc.zip
Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert <idl0r@g.o>
for reporting. svn path=/main/trunk/; revision=15294
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 95a44f0f..857f4612 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()