From: Zac Medico Date: Wed, 21 Feb 2007 09:30:59 +0000 (-0000) Subject: For consistency, replace multiple os.getcwd() calls with the "mydir" variable. X-Git-Tag: v2.2_pre1~1670 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bf6f62b2e83a7ab997889f95458e0171c45165e;p=portage.git For consistency, replace multiple os.getcwd() calls with the "mydir" variable. svn path=/main/trunk/; revision=6024 --- diff --git a/bin/repoman b/bin/repoman index 7f51443d2..b8db1092f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -480,11 +480,11 @@ 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=os.getcwd() +startdir = mydir for x in range(0,repolevel-1): os.chdir("..") -repodir=os.getcwd() +repodir = mydir os.chdir(startdir) def caterror(mycat): @@ -1666,7 +1666,7 @@ else: del myfiles[x] mydone=[] if repolevel==3: # In a package dir - repoman_settings["O"]=os.getcwd() + repoman_settings["O"] = mydir portage.digestgen([], repoman_settings, manifestonly=1, myportdb=portdb) elif repolevel==2: # In a category dir @@ -1677,7 +1677,7 @@ else: if xs[0] in mydone: continue mydone.append(xs[0]) - repoman_settings["O"]=os.path.join(os.getcwd(), xs[0]) + repoman_settings["O"] = os.path.join(mydir, xs[0]) portage.digestgen([], repoman_settings, manifestonly=1, myportdb=portdb) elif repolevel==1: # repo-cvsroot