summaryrefslogtreecommitdiffstats
path: root/copy-client
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-03-10 14:17:11 +0000
committer Eric Hameleers <alien@slackware.com>2014-03-10 14:17:11 +0000
commit2c3247fa75dcb546ecc3fc5b2c28edf7870fb695 (patch)
tree7b0095c60941c86db1ad6c37739bbb79365fd8b9 /copy-client
parent8bfc035dc6d436d4cd37b9d8757468ee279ac3ec (diff)
downloadasb-2c3247fa75dcb546ecc3fc5b2c28edf7870fb695.tar.gz
asb-2c3247fa75dcb546ecc3fc5b2c28edf7870fb695.tar.xz
Use the correct VERSION. Also, better source availability check
Diffstat (limited to 'copy-client')
-rwxr-xr-xcopy-client/build/copy-client.SlackBuild9
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