Use dpkg-query --show to not get stuck in a pager

main
Jochen Sprickerhof 12 months ago committed by Johannes Schauer Marin Rodrigues
parent e27a8d3472
commit c66b41eb7e
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -17,10 +17,10 @@ libdir="/usr/lib/$(dpkg-architecture -a "$chrootarch" -q DEB_HOST_MULTIARCH)"
# if eatmydata was actually installed properly, then we are not removing
# anything here
if ! chroot "$rootdir" dpkg-query --list eatmydata; then
if ! chroot "$rootdir" dpkg-query --show eatmydata; then
rm "$rootdir/usr/bin/eatmydata"
fi
if ! chroot "$rootdir" dpkg-query --list libeatmydata1; then
if ! chroot "$rootdir" dpkg-query --show libeatmydata1; then
rm "$rootdir$libdir"/libeatmydata.so*
fi

Loading…
Cancel
Save