[Rpm-metadata] [patch] fix to make _stringToVersion match rpm's parseEVR behavior
Christoph Thiel
cthiel at suse.de
Wed Jan 10 15:36:39 UTC 2007
On Wed, Jan 10, 2007 at 10:24:56AM -0500, seth vidal wrote:
> On Wed, 2007-01-10 at 10:19 -0500, Jeff Johnson wrote:
> > On Jan 10, 2007, at 10:18 AM, seth vidal wrote:
> >
> > > On Wed, 2007-01-10 at 16:11 +0100, Christoph Thiel wrote:
> > >> Hi there,
> > >>
> > >> while looking into one of our bugs, I found that createrepo's
> > >> _stringToVersion didn't match rpm's parseEVR. Please find the patch
> > >> attached.
> > >>
> > >
> > > What keeps the epoch from being an alpha?
> > >
> >
> > Padding with leading zeroes for representing numbers.
> >
> > Consider "2" compared with "10".
> >
>
> hmm. I always thought epochs could be like any other value in the evr
> fields. I thought that floats would work but it appears to be integers
> only.
>
> in that case the patch looks fine.
The actual problem only exists, if Epoch isn't set, but Version contains
something like "10a:1".
Best,
Christoph
More information about the Rpm-metadata
mailing list