summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-21 09:30:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-21 09:30:59 +0000
commit8bf6f62b2e83a7ab997889f95458e0171c45165e (patch)
tree05eb2ce57ace7a46c108d2b123dec87052a2058c
parent84ee7caafaf53d1f7bdef2a4c7608307674d668b (diff)
downloadportage-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-xbin/repoman8
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