"dpkg-query -s" doesn't necessarily provide the desired answer,
it includes packages known to dpkg for different reasons, but
does not exactly reply whether they are installed or not.
Starting with dpkg version 1.17.11 the ${db:Status-Status} +
${db:Status-Eflag} flags can be used for checking the current
state. While I don't think the puppet script is relevant for
Debian/wheezy systems (or even older) let's still be backwards
compatible.
Thanks: Manuel Montecelo for reporting
Thanks: Guillem Jover for feedback and code review
Development sponsored by Sipwise GmbH, recorded as
TT#25551 in customers' ticket system.
master
parent
3529ae6bc2
commit
d27375db70
Loading…
Reference in new issue