]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - builder.sh
- lftp debug 5 when debug enabled
[packages/rpm-build-tools.git] / builder.sh
index 16abb2ef53989053fc957b335389dd6dd4fbbad9..d6fa4683e36a3ef20a06c3f5391394009b77228b 100644 (file)
@@ -262,7 +262,12 @@ download_lftp() {
        local outfile=$1 url=$2 retval tmpfile
        # TODO: use mktemp
        tmpfile=$outfile.tmp
-       lftp -c "set net:max-retries $WGET_RETRIES; set http:user-agent \"$USER_AGENT\"; pget -n 10 -c \"$url\" -o \"$tmpfile\""
+       lftp -c "
+               $([ "$DEBUG" = "yes" ] && echo "debug 5;")
+               set net:max-retries $WGET_RETRIES;
+               set http:user-agent \"$USER_AGENT\";
+               pget -n 10 -c \"$url\" -o \"$tmpfile\"
+       "
 
        retval=$?
        if [ $retval -eq 0 ]; then
This page took 0.034248 seconds and 4 git commands to generate.