aboutsummaryrefslogtreecommitdiffstats
path: root/FAQ
diff options
context:
space:
mode:
authorJason Woodward2004-02-06 16:45:51 +0000
committerJason Woodward2004-02-06 16:45:51 +0000
commit376d368810990d29237f1aa0bd659fdb9f3bc931 (patch)
treeea2cd276a6dcbce37bdd03d0224541101675a561 /FAQ
parent9ee471cd5d5c919ce66d2c0adefd6187e2f56093 (diff)
downloadslapt-get-376d368810990d29237f1aa0bd659fdb9f3bc931.tar.gz
updated dep script in FAQ
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ3
1 files changed, 2 insertions, 1 deletions
diff --git a/FAQ b/FAQ
index 5980e97..f9027a2 100644
--- a/FAQ
+++ b/FAQ
@@ -596,6 +596,7 @@ Frequenty Asked Questions:
if [ -f ${MF}.bz2 ]; then bunzip2 -c ${MF}.bz2 >> ${MF}; rm ${MF}.bz2; fi
fi
done
+ if [ ! -f ${MF} ]; then echo "Failed to download MANIFEST"; exit 1; fi
echo "extracting package data"
grep -n ' Package\: ' ${MF}|awk '{print $1 $3}'|sed -re "s/\|//g" > ${PKGLINES}
}
@@ -655,7 +656,7 @@ Frequenty Asked Questions:
if [ -z "$1" ]; then echo "Usage: $0 [--update|packages]"; exit; fi
# get package cache data if it is not already there, or we want it
cd ${WORKINGDIR}
- if [ "$1" == "--update" ]; then shift; get_pkg_cache_data; fi
+ if [ "$1" == "--update" ]; then get_pkg_cache_data; exit; fi
if [ ! -f ${PKGLINES} ]; then get_pkg_cache_data; fi
# read pkg data into memory
while read line;do DEPDATA[${DEPDATACOUNT}]=$line; DEPDATACOUNT=$((DEPDATACOUNT + 1)); done < ${PKGLINES}