Re: upgrading openldapd --> slapd
* Roland Bauerschmidt
| Herbert Xu wrote:
| > That's the problem with our current init.d package status test.
| > Unfortunately, the existence of files is never going to be sufficient
| > in deducing the status of a package as it may have been completed replaced
| > by another package. I guess what we really need is a way of querying the
| > package database from an init.d script, or have dpkg rename configuration
| > files of removed packages.
|
| test -d /usr/share/doc/openldapd || exit 0 # openldapd not installed
|
| I admit that this is probably not a very elegant way, but it should do
| the job of checking if a particular package is installed...
For instance, it will break once dpkg is able to not install
particular directory hierarchies. test -f
/var/lib/dpkg/info/openldapd.list is about as bad, though..
--
Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.
Reply to: