diff -ruN apt-zip-0.13.6/common.sh apt-zip-0.13.6.fix_sleep/common.sh
--- apt-zip-0.13.6/common.sh	Tue Feb  7 01:50:50 2006
+++ apt-zip-0.13.6.fix_sleep/common.sh	Tue Feb 28 10:32:14 2006
@@ -109,7 +109,9 @@
 }
 az_loadconf()
 {
-	SLEEPTIME=0
+    # make sure that we will have a valid command for sleep
+    SLEEPTIME=0
+    SLEEPCMD='true'
     [ -r $CONFFILE ] && . $CONFFILE
     METHOD=${METHOD-wget}
     MEDIUM=${MEDIUM-/ZIP}
@@ -162,12 +164,14 @@
 	    shift
 	    ;;
 	--use-sleep=*)
-		SLEEPTIME="${1#--use-sleep=}"
-		;;
+	    SLEEPTIME="${1#--use-sleep=}"
+	    SLEEPCMD='[ ! -z "\`type sleep\`" ] && sleep "${SLEEPTIME}"'
+	    ;;
 	--use-sleep)
 	    if [ $# -lt 2 ]; then syntax_error "$1 needs an argument"; fi
-		SLEEPTIME=$2
-		;;
+	    SLEEPTIME=$2
+	    SLEEPCMD='[ ! -z "\`type sleep\`" ] && sleep "${SLEEPTIME}"'
+	    ;;
 	--aptgetaction=*)
 	    APTGETACTION=${1#--aptgetaction=}
 	    shift
@@ -251,9 +255,9 @@
     # ensure known opts are set to 0 if not requested
     for kopt in $KNOWNOPTIONS
     do
-	eval export OPTION_${kopt}=0
+    eval export OPTION_${kopt}=0
     done
-    
+
     for opt in $OPTIONS
     do
 	# Warn if unknown option
@@ -297,7 +301,7 @@
 	    WAS_MOUNTED=1
 	    if mount | grep "${MEDIUM}.*[(,]ro[,)]" >/dev/null
 	    then
-		error "$MEDIUM is mounted READ ONLY"
+	    error "$MEDIUM is mounted READ ONLY"
 	    fi
 	else
 	    WAS_MOUNTED=0
diff -ruN apt-zip-0.13.6/methods/wget apt-zip-0.13.6.fix_sleep/methods/wget
--- apt-zip-0.13.6/methods/wget	Wed Feb 22 09:13:08 2006
+++ apt-zip-0.13.6.fix_sleep/methods/wget	Tue Feb 28 10:32:16 2006
@@ -55,7 +55,7 @@
 
 	do_wget() {
 	    wget -t3 -nv -O \$2 \$1
-	    [ ! -z `type sleep` ] && sleep "${SLEEPTIME}"
+	    ${SLEEPCMD}
 	    return \$?
 	}
 
@@ -80,7 +80,7 @@
 		        if [ -r \$2 ] ; then echo "Already got \$2"; return 0; fi
 		    fi
 		    wget -nc -t3 -nv -O \$2 \$1
-		    [ ! -z `type sleep` ] && "sleep ${SLEEPTIME}"
+		    ${SLEEPCMD}
 		    return \$?
 		}
 
@@ -90,7 +90,7 @@
 	do_wget() {
 	    if [ -r ../\$2 ] ; then echo "Already got \$2"; return 1; fi
 	    wget -t3 -nv -O \$2 \$1
-	    [ ! -z `type sleep` ] && sleep "${SLEEPTIME}"
+	    ${SLEEPCMD}
 	    return \$?
 	}
 






