Re: Checking for installed package-alternative in a wrapper-skript

2002-06-23 Thread Andreas Metzler
On Sat, Jun 22, 2002 at 07:18:28PM -0500, Steve Langasek wrote: > On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: >> Is there some canonical fast way to check in a script whether inn, >> inn2 or cnews is installed on the system? >> I need to know it in newsx's wrapper skript to se

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-23 Thread Andreas Metzler
On Sat, Jun 22, 2002 at 07:18:28PM -0500, Steve Langasek wrote: > On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: >> Is there some canonical fast way to check in a script whether inn, >> inn2 or cnews is installed on the system? >> I need to know it in newsx's wrapper skript to s

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Josip Rodin
On Sun, Jun 23, 2002 at 03:28:08AM +0300, Shaul Karl wrote: > Another option might be grep-status from grep-dctrl: > > However beside the fact that grep-dctrl may not be installed In which case the maintainer may use a Depends: if they like... > I am not sure it is faster then dpkg. It was visi

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Shaul Karl
> > --V0207lvV8h4k8FAm > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > > Hello, > > Is there some canonical fast way to check in a script whether inn, >

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Steve Langasek
On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > Hello, > Is there some canonical fast way to check in a script whether inn, > inn2 or cnews is installed on the system? > I need to know it in newsx's wrapper skript to set the correct > options. Until now I've used > if [ -e /usr/

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Josip Rodin
On Sun, Jun 23, 2002 at 03:28:08AM +0300, Shaul Karl wrote: > Another option might be grep-status from grep-dctrl: > > However beside the fact that grep-dctrl may not be installed In which case the maintainer may use a Depends: if they like... > I am not sure it is faster then dpkg. It was vis

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Shaul Karl
> > --V0207lvV8h4k8FAm > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > > Hello, > > Is there some canonical fast way to check in a script whether inn, >

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Steve Langasek
On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > Hello, > Is there some canonical fast way to check in a script whether inn, > inn2 or cnews is installed on the system? > I need to know it in newsx's wrapper skript to set the correct > options. Until now I've used > if [ -e /usr

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Bastian Kleineidam
On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > Hello, > Is there some canonical fast way to check in a script whether inn, > inn2 or cnews is installed on the system? What dpkg does is parsing /var/lib/dpkg/status. I recommend using dpkg - its error prone to rely on an implicit

Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Andreas Metzler
Hello, Is there some canonical fast way to check in a script whether inn, inn2 or cnews is installed on the system? I need to know it in newsx's wrapper skript to set the correct options. Until now I've used if [ -e /usr/share/doc/inn/copyright ] ... which works well, but breaks policy 13.3. I wou

Re: Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Bastian Kleineidam
On Sat, Jun 22, 2002 at 07:08:00PM +0200, Andreas Metzler wrote: > Hello, > Is there some canonical fast way to check in a script whether inn, > inn2 or cnews is installed on the system? What dpkg does is parsing /var/lib/dpkg/status. I recommend using dpkg - its error prone to rely on an implici

Checking for installed package-alternative in a wrapper-skript

2002-06-22 Thread Andreas Metzler
Hello, Is there some canonical fast way to check in a script whether inn, inn2 or cnews is installed on the system? I need to know it in newsx's wrapper skript to set the correct options. Until now I've used if [ -e /usr/share/doc/inn/copyright ] ... which works well, but breaks policy 13.3. I wo