summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-28 17:46:53 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-28 17:46:53 +0000
commitba761f5a38e7b95b5cd19f559dc538fd285ee808 (patch)
treeb43b46d0ae4e9bed1a549c5327569de05956ef9d /bin/ebuild
parentAdd PKG_CONFIG_PATH to env_update incrementals for bug #105384. (diff)
downloadportage-multirepo-ba761f5a38e7b95b5cd19f559dc538fd285ee808.tar.gz
portage-multirepo-ba761f5a38e7b95b5cd19f559dc538fd285ee808.tar.bz2
portage-multirepo-ba761f5a38e7b95b5cd19f559dc538fd285ee808.zip
Pass in the path to the base of the current tree to ensure that the correct fetchlist is used when there are overlays present.
svn path=/main/trunk/; revision=4045
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 22a65482..398e0828 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -85,6 +85,7 @@ def discard_digests(myebuild, mysettings, mydbapi):
otherwise have to manually remove the Manifest and files/digest-* files in
order to ensure correct results."""
pkgdir = os.path.dirname(myebuild)
+ mytree = os.path.realpath(os.path.dirname(os.path.dirname(pkgdir)))
cat, pkg = pkgdir.split(os.sep)[-2:]
cpv = cat + "/" + os.path.basename(myebuild)[:-7]
from portage_manifest import Manifest
@@ -92,7 +93,8 @@ def discard_digests(myebuild, mysettings, mydbapi):
fetchlist_dict=portage.FetchlistDict(pkgdir, mysettings, mydbapi))
mf.create(requiredDistfiles=None,
assumeDistHashesSometimes=True, assumeDistHashesAlways=True)
- distfiles = mydbapi.getfetchlist(cpv, mysettings=mysettings, all=True)[1]
+ distfiles = mydbapi.getfetchlist(cpv,
+ mysettings=mysettings, all=True, mytree=mytree)[1]
for myfile in distfiles:
try:
del mf.fhashdict["DIST"][myfile]