This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: upset, genini: different version ordering


On Jul 23 21:37, Achim Gratz wrote:
> Corinna Vinschen writes:
> > 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,
> 
> Any character string or starting with a digit?

Any string.  I guess that works because the string prefix is fixed.
It's the name of the package.

> > I'm really sorry, but AFAICS the code should be able to win the
> > obfuscated perl contest hands down.  No noticable commenting either.
> 
> https://www.unix-ag.uni-kl.de/~conrad/shocc/xd3.html#nr288
> 
> Perl that doesn't look like line noise even to the person that wrote it
> four weeks ago is inefficient.  :-)

Argh!

> > We could really need help from somebody knowing perl well enough
> > to understand and describe code :}
> 
> I'd rather write new code when the objectives can be agreed upon.

New code as in "new version checks for upset"?  Or as in "new upset
from scratch"?

Still, it would be helpful to have some perl guru understanding the
code being able to describe it to a coder.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpNbWwvaqPQc.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]