-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bo Ørsted Andresen wrote:
> But I have found it impossible to make a regular expression that does break 
> for at least one of those:
> 
> media-fonts/font-adobe-100dpi-1.0.0
> media-fonts/font-adobe-75dpi-1.0.0
> media-fonts/font-adobe-utopia-type1-1.0.1
> media-libs/jpeg-6b-r7
> net-misc/cisco-vpnclient-3des-4.8.00.0490
> sys-apps/portage-2.1.1_pre1-r2
> sys-fs/udev-090
> sys-fs/udev-090-r1
> sys-libs/libstdc++-v3-3.3.6
> sys-libs/timezone-data-2006g

Just pipe the above list through the attached script.

Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEn6Lk/ejvha5XGaMRAhGyAJ4rhUGQ3J6KL1DBXNpP0HlMETFugQCcCRSB
ibY4cSDupWfPJjSbhNX2bOE=
=bbr5
-----END PGP SIGNATURE-----
#!/usr/bin/env python

from sys import stdin
from portage import dep_getkey

for pkg in stdin:
	print dep_getkey("="+pkg)

Reply via email to