diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-21 10:10:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-21 10:10:15 +0000 |
commit | 4ac746a2013149902a5937a981be80c54888f7ed (patch) | |
tree | 01d9cb146c3c4d9069865df2bef73da150afa337 | |
parent | 8bf6f62b2e83a7ab997889f95458e0171c45165e (diff) | |
download | portage-4ac746a2013149902a5937a981be80c54888f7ed.tar.gz portage-4ac746a2013149902a5937a981be80c54888f7ed.tar.bz2 portage-4ac746a2013149902a5937a981be80c54888f7ed.zip |
Fix stardir and repodir logic from the previous commit.
svn path=/main/trunk/; revision=6027
-rwxr-xr-x | bin/repoman | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/repoman b/bin/repoman index b8db1092f..c34df1b8d 100755 --- a/bin/repoman +++ b/bin/repoman @@ -480,12 +480,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.") |