]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- catch errors
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 6 Jul 2009 10:03:24 +0000 (10:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    check-unused-files.py -> 1.7

check-unused-files.py

index f38e826299df442b337adb78a729558bf0693b06..c36751ef61f389b2ac1f9f9d4730aa6e3eb65a1b 100644 (file)
@@ -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 = []
 
This page took 0.028777 seconds and 4 git commands to generate.