debmany: Support gzip compressed text files
Before, the availability of compressed file support was
pager-dependent.
Marcel Partap authored 6 years ago
Axel Beckert committed 5 years ago
22 | 22 |
[ Jakub Wilk ]
|
23 | 23 |
* which-pkg-broke: Massive speedup due to calling apt-cache less often.
|
24 | 24 |
(Closes: #883896)
|
|
25 |
|
|
26 |
[ Marcel Partap ]
|
|
27 |
* debmany: Support gzip compressed text files even if the pager does not
|
|
28 |
support them. (Closes: #892211)
|
25 | 29 |
|
26 | 30 |
-- Axel Beckert <abe@debian.org> Sun, 03 Dec 2017 03:28:50 +0100
|
27 | 31 |
|
412 | 412 |
else
|
413 | 413 |
# other file (usr/share/doc)
|
414 | 414 |
debug "Opening other file: "`printf "$othercmdline" "$PWD/$return"` # comment
|
415 | |
eval $(printf "$othercmdline" "$PWD/$return")
|
|
415 |
if [[ "$return" =~ \.gz$ ]]
|
|
416 |
then
|
|
417 |
eval $(printf "gzip -dc $PWD/$return | $othercmdline")
|
|
418 |
else
|
|
419 |
eval $(printf "$othercmdline" "$PWD/$return")
|
|
420 |
fi
|
416 | 421 |
fi
|
417 | 422 |
else
|
418 | 423 |
cd "$curdir"
|