upset, genini: different version ordering

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jul 23 19:29:00 GMT 2015


On Jul 23 21:17, Corinna Vinschen wrote:
> On Jul 23 19:08, Achim Gratz wrote:
> > Corinna Vinschen writes:
> > >> Thanks, that confirms my suspicions.  Could you tell me what Normalize
> > >> uses as the two inputs and how it returns the result?
> > >
> > > I'm not really sure.  It seems the input is a filename and something
> > > optional called a "prematch".
> > 
> > Is that optional paremeter ever used?
> 
> Yes.  In the function itself prematch is generated from some regex if
> it's not given as parameter.  There are three places calling Normalize,
> two of them with a 2nd parameter.
> 
> On closer inspection it seems there's already some provisioning for
> different versioning schemes.  At one point the second parameter
> is constructed from an entry in setup.hint called "verpat" and a keyword
> "verpat" is recognized for that.  If "verpat: ,,," is not given for a package,
> the pattern used as 2nd parameter is set to the package name, a dash,
> followed by any character string, followed by ".tar", followed by an
> arbitrary string.
> 
> Paramter 1 can be a path, not only a filename, btw.
> 
> Uh oh.  There's also a snippet of code at the end of Normalize which
> "normalizes" the file suffix.  All .tar* variants are "normalized" into
> .tar.gz, presumably for sorting purposes.

Uh oh, because this code snippet doesn't know about tar.xz, afaics.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20150723/d8e0b9e1/attachment.sig>


More information about the Cygwin-apps mailing list