Subject: Re: Determening if a package is installed?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Jan Danielsson <jan.m.danielsson@gmail.com>
List: pkgsrc-users
Date: 05/02/2007 05:28:11
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0C556A5BF8D13637A40DC2D3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Jeremy C. Reed wrote:
>> 	cd /usr/pkgsrc/$x && make show-var VARNAME=3DPKGNAME
>>
>> You may have to use a regular expression to strip off the version
>> suffix; for my scripts, I don't need to.
>=20
> PKGBASE will have it without the version.

   Ah, even better/simpler. Thanks!

   Cool, now I can automate my package updates in a very clean fashion.
Many thanks to you and Steven.

   Perhaps someone should document how to do this on a wiki. It really
is a time-saver.

--=20
Kind regards,
Jan Danielsson



--------------enig0C556A5BF8D13637A40DC2D3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGOAVLuPlHKFfKXTYRCjTiAJ4vuASKcbEBg/uncZbF+809zNQh6QCdHkp+
RHkl1REkvvevGNHebBrruHA=
=CGZP
-----END PGP SIGNATURE-----

--------------enig0C556A5BF8D13637A40DC2D3--