From e77c91c6a5bf027a4cbbcd1265d07e1fc6029409 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 6 Jul 2009 10:03:24 +0000 Subject: [PATCH] - catch errors Changed files: check-unused-files.py -> 1.7 --- check-unused-files.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check-unused-files.py b/check-unused-files.py index f38e826..c36751e 100644 --- a/check-unused-files.py +++ b/check-unused-files.py @@ -21,6 +21,9 @@ if dir == '': p = subprocess.Popen(['rpm-specdump', spec], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (out, err) = p.communicate(None) p.wait() +if err: + print >> sys.stderr, "%s: %s" % (sys.argv[0], err) + sys.exit(1) files = [] -- 2.44.0