diff options
| author | Guillem Jover <guillem@debian.org> | 2022-03-20 11:48:43 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-05-19 16:02:55 +0000 |
| commit | 4d6fcb1dddd5654e7ba8bfa2705bbb4f2c4a6884 (patch) | |
| tree | 1663e13294ac2ffc408f817a31f2888f022ae40b /dselect/update | |
| parent | b00a59c0b953bf7688fc60a976bac74194886a0c (diff) | |
dselect: Pass available file from stdin to dpkg --update-avail
The dpkg --update-avail command has supported reading from stdin since
dpkg 1.17.7. This removes a temporary file which can be very big
nowadays.
Diffstat (limited to 'dselect/update')
| -rwxr-xr-x | dselect/update | 7 |
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) |
