Make repoman bail out if it's unable to generate the Manifest.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:52:09 +0000 (06:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 06:52:09 +0000 (06:52 -0000)
svn path=/main/trunk/; revision=5200

bin/repoman

index 2b0909c79a8b362d93500e12463b566c3aabd66c..443e8919296affcef09ca3a0cdfc3fef481d5a1d 100755 (executable)
@@ -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")