summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-14 11:34:19 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-14 11:34:19 -0700
commit280f10d42a8fbfe3b4b34eb18e6ea5f8dd3ff484 (patch)
tree2e7a606619500ff97c81af6d7338ba3938355fc3
parent3db6f6e783e5bef8240c04b8a6c6a8b7983572a5 (diff)
downloadportage-280f10d42a8fbfe3b4b34eb18e6ea5f8dd3ff484.tar.gz
portage-280f10d42a8fbfe3b4b34eb18e6ea5f8dd3ff484.tar.bz2
portage-280f10d42a8fbfe3b4b34eb18e6ea5f8dd3ff484.zip
repoman: use the repodir variable more
-rwxr-xr-xbin/repoman13
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/repoman b/bin/repoman
index 2180f641a..318979766 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -587,8 +587,8 @@ portdb = trees[root]['porttree'].dbapi
# Constrain dependency resolution to the master(s)
# that are specified in layout.conf.
-portdir_overlay = os.path.realpath(portdir_overlay)
-repo_info = portdb._repo_info[portdir_overlay]
+repodir = os.path.realpath(portdir_overlay)
+repo_info = portdb._repo_info[repodir]
portdb.porttrees = list(repo_info.eclass_db.porttrees)
portdir = portdb.porttrees[0]
@@ -598,7 +598,7 @@ portdir = portdb.porttrees[0]
# thin-manifests is designed to prevent.
sign_manifests = "sign" in repoman_settings.features and \
repoman_settings.repositories.get_repo_for_location(
- portdir_overlay).sign_manifest
+ repodir).sign_manifest
# Generate an appropriate PORTDIR_OVERLAY value for passing into the
# profile-specific config constructor calls.
@@ -642,17 +642,12 @@ if options.mode == 'commit' and repolevel not in [1,2,3]:
print(red("***"))
err("Unable to identify level we're commiting from for %s" % '/'.join(reposplit))
-startdir = normalize_path(mydir)
-repodir = startdir
-for x in range(0, repolevel - 1):
- repodir = os.path.dirname(repodir)
-repodir = os.path.realpath(repodir)
-
# Make startdir relative to the cannonical repodir, so that we can pass
# it to digestgen and it won't have to be cannonicalized again.
if repolevel == 1:
startdir = repodir
else:
+ startdir = normalize_path(mydir)
startdir = os.path.join(repodir, *startdir.split(os.sep)[-2-repolevel+3:])
def caterror(mycat):