1 |
Author: zmedico |
2 |
Date: 2010-01-30 22:49:12 +0000 (Sat, 30 Jan 2010) |
3 |
New Revision: 15294 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/repoman |
7 |
Log: |
8 |
Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert <idl0r@g.o> |
9 |
for reporting. |
10 |
|
11 |
|
12 |
Modified: main/trunk/bin/repoman |
13 |
=================================================================== |
14 |
--- main/trunk/bin/repoman 2010-01-30 22:35:30 UTC (rev 15293) |
15 |
+++ main/trunk/bin/repoman 2010-01-30 22:49:12 UTC (rev 15294) |
16 |
@@ -748,6 +748,12 @@ |
17 |
caterror(catdir) |
18 |
scanlist.append(catdir+"/"+reposplit[-1]) |
19 |
repo_subdir = scanlist[-1] + os.sep |
20 |
+else: |
21 |
+ msg = 'Repoman is unable to determine PORTDIR or PORTDIR_OVERLAY' + \ |
22 |
+ ' from the current working directory' |
23 |
+ logging.critical(msg) |
24 |
+ sys.exit(1) |
25 |
+ |
26 |
repo_subdir_len = len(repo_subdir) |
27 |
scanlist.sort() |