diff options
-rwxr-xr-x | copy-client/build/copy-client.SlackBuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/copy-client/build/copy-client.SlackBuild b/copy-client/build/copy-client.SlackBuild index a1b46c56..286c6ef6 100755 --- a/copy-client/build/copy-client.SlackBuild +++ b/copy-client/build/copy-client.SlackBuild @@ -31,7 +31,7 @@ # Build needs: # Needs: # Changelog: -# 1.41.0253-1: 06/mar/2014 by Eric Hameleers <alien@slackware.com> +# 1.42.0277-1: 06/mar/2014 by Eric Hameleers <alien@slackware.com> # * Initial build. # # Run 'sh copy-client.SlackBuild' to build a Slackware package. @@ -42,7 +42,7 @@ PRGNAM=copy-client SRCNAM=copy_agent -VERSION=${VERSION:-1.41.0277} +VERSION=${VERSION:-1.42.0277} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -114,8 +114,9 @@ if ! [ -f ${SOURCE} ]; then SOURCE=$SRCDIR/$REMOTESRC # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then + if [ -f ${SOURCE} ]; then + echo "Ah, found it!" + elif ! [ "x${SRCURL}" == "x" ]; then echo "Will download file to $(dirname $SOURCE)" wget --content-disposition --no-check-certificate -nv -T 20 "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then |