Check_package () buggy? s/if `Chroot ...`/[ -n "`Chroot ...`"]
- Subject: Check_package () buggy? s/if `Chroot ...`/[ -n "`Chroot ...`"]
- From: mathieu.geli at gmail.com (Mathieu GELI)
- Date: Wed, 1 Aug 2007 10:07:21 +0200
- Message-id: <[🔎] 43479bc90708010107s320ba3cwe9b18615c316e3b0@mail.gmail.com>
- In-reply-to: <20070731212021.GA11143@quoininc.com>
- References: <20070731194813.GA30567@quoininc.com> <20070731202543.GA1272@quoininc.com> <20070731212021.GA11143@quoininc.com>
> This last patch also doesn't work after removing some stampfiles since
> purged packages (or removed but not purged or ...) are still in the
> dpkg status database. I'm using this instead which does what I want.
Yes, it seems that we overlooked that detail.
I better do a :
dpkg-query -W -f='${Status}' $PACKAGE | grep ^install
If dpkg had a builtin command to query installed package and set
an appropriate return code I would be more than happy though.
--
Mathieu
Reply to: