From abbb41fb3cfd947845c7b97e332734ddb4be9461 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Feb 2007 09:33:04 +0000 Subject: [PATCH] For consistency, replace multiple os.getcwd() calls with the "mydir" variable. (trunk r6023:6024) svn path=/main/branches/2.1.2/; revision=6026 --- bin/repoman | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/repoman b/bin/repoman index 911403861..1ca1f7cfc 100755 --- a/bin/repoman +++ b/bin/repoman @@ -479,11 +479,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): @@ -1665,7 +1665,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 @@ -1676,7 +1676,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 -- 2.26.2