This is the mail archive of the cygwin-apps-cvs mailing list for the cygwin-apps project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[calm - Cygwin server-side packaging maintenance script] branch master, updated. c118ad8400827f35f2839051c4bc77221c840ad0




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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]