From: Zac Medico Date: Wed, 21 Feb 2007 10:12:32 +0000 (-0000) Subject: Fix stardir and repodir logic from the previous commit. (trunk r6026:6027) X-Git-Tag: v2.1.2.1~48 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=87a870896f0024b6510f0730f9862b9ca06fc626;p=portage.git Fix stardir and repodir logic from the previous commit. (trunk r6026:6027) svn path=/main/branches/2.1.2/; revision=6028 --- 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.")