]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- cache_rpm_dump checks for rpm/rpmbuild errors
authorpascalek <pascalek@pld-linux.org>
Thu, 3 Jul 2003 07:33:39 +0000 (07:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.188

builder.sh

index 6eba582f37b75636137dff263fd39577a07db7a4..1f9b06c60d727633b59976acabf530d172a4fc61 100644 (file)
@@ -3,11 +3,12 @@
 # $Id$
 # Exit codes:
 #      0 - succesful
-#      1 - help dispayed
+#      1 - help displayed
 #      2 - no spec file name in cmdl parameters
 #      3 - spec file not stored in repo
 #      4 - some source, patch or icon files not stored in repo
 #      5 - package build failed
+#      6 - spec file with errors
 
 # Notes (todo):
 #      - builder -u fetches current version first
@@ -199,6 +200,10 @@ cache_rpm_dump () {
                rpmbuild --nodigest --nosignature --define 'prep %dump' $BCOND $SPECFILE 2>&1 
                ;;
        esac`
+    if [ $? -ne 0 ]; then
+        echo $rpm_dump_cache
+       exit 6
+    fi
 }
 
 rpm_dump () {
This page took 0.045155 seconds and 4 git commands to generate.