diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-21 09:30:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-21 09:30:59 +0000 |
commit | 8bf6f62b2e83a7ab997889f95458e0171c45165e (patch) | |
tree | 05eb2ce57ace7a46c108d2b123dec87052a2058c | |
parent | 84ee7caafaf53d1f7bdef2a4c7608307674d668b (diff) | |
download | portage-8bf6f62b2e83a7ab997889f95458e0171c45165e.tar.gz portage-8bf6f62b2e83a7ab997889f95458e0171c45165e.tar.bz2 portage-8bf6f62b2e83a7ab997889f95458e0171c45165e.zip |
For consistency, replace multiple os.getcwd() calls with the "mydir" variable.
svn path=/main/trunk/; revision=6024
-rwxr-xr-x | bin/repoman | 8 |
1 files changed, 4 insertions, 4 deletions
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 |