Improved handling of in tools/update_tasks

This commit is contained in:
Steve McIntyre 2009-02-12 14:16:45 +00:00
parent 2cc2f1fe15
commit 60c1387960
1 changed files with 7 additions and 2 deletions

View File

@ -156,8 +156,13 @@ arch=$(which_deb $MIRROR $CODENAME coreutils binary | sed -e "s/\.deb//" -e "s/.
# We need to gunzip a copy of the appropriate Packages.gz file(s)
TMP_PKG=$TDIR/Packages
zcat $MIRROR/dists/$CODENAME/main/binary-$arch/Packages.gz > $TMP_PKG
[ -n "$LOCAL" ] && zcat \
$MIRROR/dists/$CODENAME/local/binary-$arch/Packages.gz >> $TMP_PKG
if [ -n "$LOCAL" ] ; then
if [ -n "$LOCALDEBS" ] ; then
zcat $LOCALDEBS/dists/$CODENAME/local/binary-$arch/Packages.gz >> $TMP_PKG
else
zcat $MIRROR/dists/$CODENAME/local/binary-$arch/Packages.gz >> $TMP_PKG
fi
fi
# Now grab the appropriate tasksel package
TASKSEL_DEB=$MIRROR/`mawk '