[calm - Cygwin server-side packaging maintenance script] branch master, updated. c118ad8400827f35f2839051c4bc77221c840ad0
jturney@sourceware.org
jturney@sourceware.org
Thu Mar 17 23:24:00 GMT 2016
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))
More information about the Cygwin-apps-cvs
mailing list