]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- tuned up BRs removing process
authoryoshi <yoshi@pld-linux.org>
Thu, 13 Nov 2003 10:11:43 +0000 (10:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- some typos

Changed files:
    builder.sh -> 1.214

builder.sh

index 9f1eb36a8d4fe3e393fd9fbcc6f82b1f3e026c99..1e37fcbb6d944cfda0c21d9dd0bd41d2e5016271 100644 (file)
@@ -297,15 +297,19 @@ Exit_error()
 
     case "$1" in
     "err_no_spec_in_cmdl" )
+        remove_build_requires;
        echo "ERROR: spec file name not specified.";
        exit 2 ;;
     "err_no_spec_in_repo" )
+        remove_build_requires;
        echo "Error: spec file not stored in CVS repo.";
        exit 3 ;;
     "err_no_source_in_repo" )
+        remove_build_requires;
        echo "Error: some source, patch or icon files not stored in CVS repo. ($2)";
        exit 4 ;;
     "err_build_fail" )
+        remove_build_requires;
        echo "Error: package build failed. (${2:-no more info})";
        exit 5 ;;
     esac
@@ -814,6 +818,24 @@ do
 done
 }
 
+remove_build_requires()
+{
+    if [ "$INSTALLED_PACKAGES" != "" ]; then
+           case "$REMOVE_BUILD_REQUIRES" in
+                   "force")
+                       poldek --noask -e $INSTALLED_PACKAGES
+                   ;;
+                   "nice")
+                       poldek --ask -e $INSTALLED_PACKAGES
+                   ;;
+                   *)
+                           echo You may want to manually remove following BuildRequires fetched:
+                           echo $INSTALLED_PACKAGES
+                   ;;
+           esac
+    fi
+}
+
 display_bconds()
 {
 if [ "$AVAIL_BCONDS_WITH" != "" ] || [ "$AVAIL_BCONDS_WITHOUT" != "" ]; then
@@ -1124,18 +1146,7 @@ case "$COMMAND" in
                    poldek --sn ${POLDEK_SOURCE} --mkidx="${POLDEK_INDEX_DIR}/packages.dir.gz"
                    poldek --sn ${POLDEK_SOURCE} --up
            fi
-           case "$REMOVE_BUILD_REQUIRES" in
-                   "force")
-                       poldek --noask -e $INSTALLED_PACKAGES
-                   ;;
-                   "nice")
-                       poldek --ask -e $INSTALLED_PACKAGES
-                   ;;
-                   *)
-                           echo You may want to manually remove following BuildRequires fetched:
-                           echo $INSTALLED_PACKAGES
-                   ;;
-           esac
+           remove_build_requires;
        else
            Exit_error err_no_spec_in_cmdl;
        fi
This page took 0.065869 seconds and 4 git commands to generate.