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

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <1168442696.20935.6.camel@cutter>
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.

-sv
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.