Initial changes for apt-selection for grab_file

This commit is contained in:
Steve McIntyre 2014-01-20 00:01:46 +00:00
parent e16d3ea4ca
commit eb190e34b1
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,13 @@ temp=$APTTMP/$CODENAME-$ARCH/temp.apt-selection
# Launch the command
if [ "$1" = "update" ] || [ "$1" = "check" ]; then
for section in $sections; do
if [ $ARCH = "source" ] ; then
grab_file dists/$CODENAME/$section/source/Sources.gz
else
grab_file dists/$CODENAME/$section/binary-$ARCH/Packages.gz
fi
done
apt-get $options $@
exit $?
elif [ "$1" = "cache" ]; then