changeset 965:bcab030a2394

Fix thinko in download_from.
author Rob Landley <rob@landley.net>
date Tue, 02 Feb 2010 19:37:11 -0600
parents edf9264f2d26
children bd2ea96aac53
files sources/functions.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/functions.sh	Tue Feb 02 04:46:07 2010 -0600
+++ b/sources/functions.sh	Tue Feb 02 19:37:11 2010 -0600
@@ -314,7 +314,7 @@
 
   # If we have another source, try to download file from there.
 
-  [ -n "$1" ] && return 1
+  [ -z "$1" ] && return 1
   wget -t 2 -T 20 -O "$SRCDIR/$FILENAME" "$1" ||
     (rm "$SRCDIR/$FILENAME"; return 2)
   touch -c "$SRCDIR/$FILENAME"