Merge pull request #955 from rck/master

preview-tui-ext: use atool for rpm/deb
This commit is contained in:
Piña Colada 2021-04-21 18:17:13 +05:30 committed by GitHub
commit 47a779b1bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,6 +210,8 @@ preview_file() {
fifo_pager unzip -l "$1"
elif [ "$ext" = "gz" ] || [ "$ext" = "bz2" ]; then
fifo_pager tar -tvf "$1"
elif [ "$mimetype" = "application/x-rpm" ] || [ "$mimetype" = "application/vnd.debian.binary-package" ] && exists atool; then
fifo_pager atool -l "$1"
else
fifo_pager print_bin_info "$1"
fi