2007/7/12, Javier Fernández-Sanguino Peña &lt;<a href="mailto:jfs@computer.org">jfs@computer.org</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Jul 12, 2007 at 12:10:33PM +0500, Pavel Vinogradov wrote:<br>&gt;&nbsp;&nbsp; My latest version of regexp works for me:<br>&gt; urlpatern = re.compile (r&#39;fileurl [\w:/.\-+]+/([\w\-.+]+)\.deb[^i]&#39;)<br>You should verify first which are the valid names of a package in the Debian
<br>archive (i.e. what can a deb contain):</blockquote><div><br>&nbsp; Hmm. Yes, i mistake epoch part of version. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, what versions can a package have:<br><a href="http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version">http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version</a></blockquote><div>
&nbsp;&nbsp; upstream_version:<br>
The <var>upstream_version</var> may contain only alphanumerics[<a href="http://www.debian.org/doc/debian-policy/footnotes.html#f33" name="fr33">33</a>] and the characters <samp>.</samp>
<samp>+</samp> <samp>-</samp> <samp>:</samp> (full stop, plus, hyphen, colon)
and should start with a digit.  If there is no <var>debian_revision</var> then
hyphens are not allowed; if there is no <var>epoch</var> then colons are not
allowed.<br>&nbsp; <br>&nbsp; But, what&#39;s about dsa-1313:<br>&lt;dd&gt;&lt;fileurl <a href="http://security.debian.org/pool/updates/main/m/mplayer/mplayer-doc_1.0~rc1-12etch1_all.deb">http://security.debian.org/pool/updates/main/m/mplayer/mplayer-doc_1.0~rc1-12etch1_all.deb
</a> /&gt;<br>&nbsp; Upstream version contain ~. I remember discussion about it in some maillist, but i not remember it result.<br></div></div><br>-- <br>Pavel Vinogradov<br>NixDev.Net, Senior Linux Developer