summaryrefslogtreecommitdiff
path: root/contrib/source-checker/oe-source-checker.py
diff options
context:
space:
mode:
authorMichael Smith <msmith@cbnco.com>2009-06-27 17:12:01 -0400
committerMichael Smith <msmith@cbnco.com>2009-08-19 09:12:51 -0400
commit3555703d298735f509973b30e5aa40c19c1f6a2e (patch)
tree11cdff3c1290b84cd21e2cbbbb35428c6e82e9d7 /contrib/source-checker/oe-source-checker.py
parentad0ba478018ac64598b6701df5a79b1f71f9b58f (diff)
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 <msmith@cbnco.com>
Diffstat (limited to 'contrib/source-checker/oe-source-checker.py')
-rwxr-xr-x[-rw-r--r--]contrib/source-checker/oe-source-checker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/source-checker/oe-source-checker.py b/contrib/source-checker/oe-source-checker.py
index 0ae356395c..bb14c87289 100644..100755
--- 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