Bug#59743: apt: /usr/lib/dpkg/methods/apt/update doesn't honours $CACHEDIR in some actions
Package: apt
Version: 0.3.18
Severity: normal
Hi
Please look in the following text for the word "HERE"
#!/bin/sh
set -e
# Get the configuration from /etc/apt/apt.conf
OPTS="-f"
APTGET="/usr/bin/apt-get"
APTCACHE="/usr/bin/apt-cache"
DPKG="/usr/bin/dpkg"
CACHEDIR="/var/cache/apt"
PROMPT="no"
RES=`apt-config shell OPTS DSelect::UpdateOptions \
DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \
APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache \
PROMPT DSelect::PromptAfterUpdate`
eval $RES
# It looks slightly ugly to have a double / in the dpkg output
CACHEDIR=`echo $CACHEDIR | sed -e "s|/$||"`
set +e
FAILED=0
$APTGET $OPTS update || FAILED=1
set -e
echo "Merging Available information"
rm -f /var/cache/apt/available
^^^^^^^^^^^^^^^^^^^^^^^^
HERE
$APTCACHE dumpavail > $CACHEDIR/available
$DPKG --update-avail $CACHEDIR/available
rm -f $CACHEDIR/available
if [ $PROMPT = "yes" ]; then
echo "Press enter to continue." && read RES;
fi
exit $FAILED
-------------------------
End.... IMHO that's an error, quite ugly when you're doing an offline
upgrade/install
Thanks for your support
Ulisses
-- System Information
Debian Release: 2.2
Kernel Version: Linux pusa 2.2.13 #1 lun nov 29 19:11:46 CET 1999 i586 unknown
Versions of the packages apt depends on:
ii libc6 2.1.3-2 GNU C Library: Shared libraries and Timezone
ii libstdc++2.10 2.95.2-5 The GNU stdc++ library
Reply to: