[Oval-devel] [Oval-commits] r71 - trunk/tools/oval/parser

Javier Fernández-Sanguino Peña jfs at computer.org
Thu Jul 12 09:42:48 UTC 2007


On Thu, Jul 12, 2007 at 12:10:33PM +0500, Pavel Vinogradov wrote:
>   My latest version of regexp works for me:
> urlpatern = re.compile (r'fileurl [\w:/.\-+]+/([\w\-.+]+)\.deb[^i]')

You should verify first which are the valid names of a package in the Debian
archive (i.e. what can a deb contain):

http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Package

Also, what versions can a package have:

http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version

The package filename is based on package+version. With the exception that the
'epoch' is not included.

Regards

Javier



More information about the Oval-devel mailing list