public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. c118ad8400827f35f2839051c4bc77221c840ad0
@ 2016-03-17 23:24 jturney
  0 siblings, 0 replies; only message in thread
From: jturney @ 2016-03-17 23:24 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=c118ad8400827f35f2839051c4bc77221c840ad0

commit c118ad8400827f35f2839051c4bc77221c840ad0
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Mar 17 23:22:40 2016 +0000

    Exit with non-zero status if we didn't write setup.ini due to a pre-existing package-set error


Diff:
---
 calm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/calm b/calm
index 340b569..fa095bd 100755
--- a/calm
+++ b/calm
@@ -76,7 +76,7 @@ def main(args):
         # validate the package set
         if not package.validate_packages(args, packages):
             logging.error("existing package set has errors, not processing uploads or writing setup.ini")
-            return
+            return 1
 
         # read maintainer list
         mlist = maintainers.Maintainer.read(args)
@@ -132,6 +132,8 @@ def main(args):
         # XXX: perhaps we need a --[no]listing command line option to disable this from being run?
         pkg2html.update_package_listings(args, packages)
 
+        return 0
+
 #
 #
 #
@@ -169,4 +171,4 @@ if __name__ == "__main__":
     if args.email:
         args.email = args.email.split(',')
 
-    main(args)
+    sys.exit(main(args))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-17 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-17 23:24 [calm - Cygwin server-side packaging maintenance script] branch master, updated. c118ad8400827f35f2839051c4bc77221c840ad0 jturney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).