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

Pavel Vinogradov blaze at nixdev.net
Thu Jul 12 12:59:29 UTC 2007


2007/7/12, Javier Fernández-Sanguino Peña <jfs at computer.org>:
>
> 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):


  Hmm. Yes, i mistake epoch part of version.

Also, what versions can a package have:
> http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version

   upstream_version:
The upstream_version may contain only
alphanumerics[33<http://www.debian.org/doc/debian-policy/footnotes.html#f33>]
and the characters . + - : (full stop, plus, hyphen, colon) and should start
with a digit. If there is no debian_revision then hyphens are not allowed;
if there is no epoch then colons are not allowed.

  But, what's about dsa-1313:
<dd><fileurl
http://security.debian.org/pool/updates/main/m/mplayer/mplayer-doc_1.0~rc1-12etch1_all.deb/>
  Upstream version contain ~. I remember discussion about it in some
maillist, but i not remember it result.

-- 
Pavel Vinogradov
NixDev.Net, Senior Linux Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/oval-devel/attachments/20070712/fae83b04/attachment.htm 


More information about the Oval-devel mailing list