]>
git.saurik.com Git - apt.git/blob - dselect/update
4 # Get the configuration from /etc/apt/apt.conf
6 APTGET
="/usr/bin/apt-get"
7 APTCACHE
="/usr/bin/apt-cache"
9 CACHEDIR
="/var/cache/apt"
11 RES
=`apt-config shell OPTS DSelect::UpdateOptions \
12 DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \
13 APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache \
14 PROMPT DSelect::PromptAfterUpdate`
17 # It looks slightly ugly to have a double / in the dpkg output
18 CACHEDIR
=`echo $CACHEDIR | sed -e "s|/$||"`
22 $APTGET $OPTS update
|| FAILED
=1
25 echo "Merging Available information"
26 rm -f $CACHEDIR/available
27 $APTCACHE dumpavail
> $CACHEDIR/available
28 $DPKG --update-avail $CACHEDIR/available
29 rm -f $CACHEDIR/available
31 if [ $PROMPT = "yes" ]; then
32 echo "Press enter to continue." && read RES
;