summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-21 10:12:32 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-21 10:12:32 +0000
commit87a870896f0024b6510f0730f9862b9ca06fc626 (patch)
tree53791ac25ec66150b29db5b551364c0a59038b04 /bin
parentabbb41fb3cfd947845c7b97e332734ddb4be9461 (diff)
downloadportage-87a870896f0024b6510f0730f9862b9ca06fc626.tar.gz
portage-87a870896f0024b6510f0730f9862b9ca06fc626.tar.bz2
portage-87a870896f0024b6510f0730f9862b9ca06fc626.zip
Fix stardir and repodir logic from the previous commit. (trunk r6026:6027)
svn path=/main/branches/2.1.2/; revision=6028
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/repoman b/bin/repoman
index 1ca1f7cfc..62bde5de9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -479,12 +479,10 @@ if mymode == "commit" and repolevel not in [1,2,3]:
print red("***")
err("Unable to identify level we're commiting from for %s" % '/'.join(reposplit))
-startdir = mydir
-
+startdir = normalize_path(mydir)
+repodir = startdir
for x in range(0,repolevel-1):
- os.chdir("..")
-repodir = mydir
-os.chdir(startdir)
+ repodir = os.path.dirname(repodir)
def caterror(mycat):
err(mycat+" is not an official category. Skipping QA checks in this directory.\nPlease ensure that you add "+catdir+" to "+repodir+"/profiles/categories\nif it is a new category.")