]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- lftp debug 5 when debug enabled
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 30 Oct 2011 06:39:44 +0000 (06:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.666

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.033072 seconds and 4 git commands to generate.