summaryrefslogtreecommitdiff
path: root/dselect/update
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-05-19 16:03:03 +0000
committerJulian Andres Klode <jak@debian.org>2025-05-19 16:03:03 +0000
commit50adb7b651317c22e7997991e07a6b78568337e1 (patch)
tree98f5486f31777d998f68d453488f52a67d31fa4f /dselect/update
parent49e0eec055c5feca1ff7289c0fc59306a3a67a3d (diff)
parente17f8916fd32228009293087a6fdc6d8c9c9db9f (diff)
Merge branch 'pu/dselect-method' into 'main'
Cleanup dselect method See merge request apt-team/apt!423
Diffstat (limited to 'dselect/update')
-rwxr-xr-xdselect/update7
1 files changed, 4 insertions, 3 deletions
diff --git a/dselect/update b/dselect/update
index 0ab317ee4..057e26e65 100755
--- a/dselect/update
+++ b/dselect/update
@@ -28,10 +28,11 @@ STATUS=1
if $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" update
then
echo $"Merging available information"
+ # XXX: Make sure we remove an old intermediate file that we used to feed
+ # to dpkg, until enough time has passed that we have some guarantee it
+ # is no longer left over in the cache directory (since apt 2.9.x).
rm -f $CACHEDIR/available
- $APTCACHE dumpavail > $CACHEDIR/available
- $DPKG "$DPKG_OPTS" --update-avail $CACHEDIR/available
- rm -f $CACHEDIR/available
+ $APTCACHE dumpavail | $DPKG "$DPKG_OPTS" --update-avail
case "$CLEAN" in
Pre-Auto|PreAuto|pre-auto)