On Tue, 2005-10-11 at 19:28 +0200, Frank Küster wrote:
> is there an established way to find out in the postinst script of a
> package whether an other package (e.g. one which we Recommend or
> Suggest) is configured?

Assuming your package does something reasonable with this knowledge ...

> Testing for file contents can only tell whether
> it is unpacked, but that might not be enough.

I don't know about an "established" way, but libc6.postinst looks
interesting:

# Only get the ones that are installed, and configured
check=$(dpkg -s $check 2> /dev/null | egrep '^Package:|^Status:' | awk '{if ($1 
~ /^Package:/) { package=$2 } else if ($0 ~ /^Status: .* installed$/) { print 
package }}')

Ben


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to