summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-07 06:52:09 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-07 06:52:09 +0000
commit134add746097a67013f9548e1e5ece556ed98e60 (patch)
treea1fed0d934e5061846b5dcf05b3e1a2eaf7c9d80
parentbd0d8eac42c99514fb3caf40322e6be83555561d (diff)
downloadportage-134add746097a67013f9548e1e5ece556ed98e60.tar.gz
portage-134add746097a67013f9548e1e5ece556ed98e60.tar.bz2
portage-134add746097a67013f9548e1e5ece556ed98e60.zip
Make repoman bail out if it's unable to generate the Manifest.
svn path=/main/trunk/; revision=5200
-rwxr-xr-xbin/repoman5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman
index 2b0909c79..443e89192 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -822,8 +822,9 @@ for x in scanlist:
if mymode in ("fix", "commit"):
repoman_settings["O"] = checkdir
- portage.digestgen(
- [], repoman_settings, manifestonly=1, myportdb=portdb)
+ if not portage.digestgen([], repoman_settings, myportdb=portdb):
+ print "Unable to generate manifest."
+ sys.exit(1)
mf = Manifest(checkdir, repoman_settings["DISTDIR"])
mydigests=mf.getTypeDigests("DIST")