]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - builder.sh
- cache_rpm_dump checks for rpm/rpmbuild errors
[packages/rpm-build-tools.git] / 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.138937 seconds and 4 git commands to generate.