]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder.sh: Prevent rpm from using internal downloader during cleaning
authorKacper Kornet <draenog@pld-linux.org>
Mon, 29 Apr 2013 02:06:15 +0000 (03:06 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Mon, 29 Apr 2013 02:15:46 +0000 (03:15 +0100)
Rpm5 always tries to download missing sources, even during cleaning
jobs. What's worse the its internal downloader sometimes hangs up
indefinitely (see truecryp:e725751), which can lead to hang up jobs on
builders.

builder.sh

index a29cc133e7302ecc7e83e590e60593919b058dd2..5b5f58a11cb0c3173572480c5eef663ca8ee7a1a 100755 (executable)
@@ -2108,7 +2108,7 @@ mr_proper() {
        DONT_PRINT_REVISION="yes"
 
        # remove spec and sources
-       PATH=$CLEAN_PATH $RPMBUILD --clean --rmsource --rmspec --nodeps --define "_specdir $PACKAGE_DIR" --define "_sourcedir $PACKAGE_DIR" --define "_builddir $builddir" $PACKAGE_DIR/$SPECFILE
+       PATH=$CLEAN_PATH $RPMBUILD --clean --rmsource --rmspec --nodeps --define "__urlgetfile() %nil" --define "_specdir $PACKAGE_DIR" --define "_sourcedir $PACKAGE_DIR" --define "_builddir $builddir" $PACKAGE_DIR/$SPECFILE
        rm -rf $PACKAGE_DIR/{.git,.gitignore}
        rmdir --ignore-fail-on-non-empty $PACKAGE_DIR
 }
This page took 0.039406 seconds and 4 git commands to generate.