From: Roland Kammerer Date: Wed, 21 Apr 2021 09:41:58 +0000 (+0200) Subject: preview-tui-ext: use atool for rpm/deb X-Git-Tag: v4.1~141^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5c1c732fb767d6e2caf586b1dca8326ce1b51261;p=nnn.git preview-tui-ext: use atool for rpm/deb atool does good job in previewing the content of deb/rpm files, use it. --- diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index a1f64b22..94542905 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -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