Re: [patch] fix to make _stringToVersion match rpm's parseEVR behavior

Christoph Thiel <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.