From 3555703d298735f509973b30e5aa40c19c1f6a2e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 27 Jun 2009 17:12:01 -0400 Subject: source-checker: usability tweaks checksum sorter, source checker: * exit(1) on failure; * send errors to stderr; * make executable checksum sorter: * read from stdin if no arg; * accept --inplace option to read and write from the same file; * check that input file exists as ConfigParser.read() doesn't treat missing files as an error. Signed-off-by: Michael Smith --- contrib/source-checker/oe-source-checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 contrib/source-checker/oe-source-checker.py (limited to 'contrib/source-checker/oe-source-checker.py') diff --git a/contrib/source-checker/oe-source-checker.py b/contrib/source-checker/oe-source-checker.py old mode 100644 new mode 100755 index 0ae356395c..bb14c87289 --- a/contrib/source-checker/oe-source-checker.py +++ b/contrib/source-checker/oe-source-checker.py @@ -39,13 +39,14 @@ import sys if len(sys.argv) < 3: + print >> sys.stderr, "%s: missing argument" % sys.argv[0] print """ OpenEmbedded source checker script require two arguments: 1. location of conf/checksums.ini 2. path to DL_DIR (without "/" at the end) """ - sys.exit(0) + sys.exit(1) import ConfigParser, os, itertools -- cgit v1.2.3