summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-02 10:19:26 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-02 10:19:26 +0000
commit01e1b30d3c63d17353e2e7392116c88315d6f82f (patch)
tree0d1f6843b68ddceb4530596fb9d2c03aeef8193e
parent5c92cfaa7f6cc644d05b0eff15b0400e6eb30391 (diff)
downloadportage-01e1b30d3c63d17353e2e7392116c88315d6f82f.tar.gz
portage-01e1b30d3c63d17353e2e7392116c88315d6f82f.tar.bz2
portage-01e1b30d3c63d17353e2e7392116c88315d6f82f.zip
Make sure that *all* of the ebuilds are listed in the Manifest.
svn path=/main/trunk/; revision=5156
-rw-r--r--pym/portage.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 222e7420d..4388fb10a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3045,6 +3045,14 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
writemsg("!!! Got: %s\n" % e.value[2], noiselevel=-1)
writemsg("!!! Expected: %s\n" % e.value[3], noiselevel=-1)
return 1
+ # Make sure that all of the ebuilds are actually listed in the
+ # Manifest.
+ for f in os.listdir(pkgdir):
+ if f.endswith(".ebuild") and not mf.hasFile("EBUILD", f):
+ writemsg("!!! A file is not listed in the " + \
+ "Manifest: '%s'\n" % os.path.join(pkgdir, f),
+ noiselevel=-1)
+ return 1
_doebuild_manifest_checked = manifest_path
doebuild_environment(myebuild, mydo, myroot, mysettings, debug,