2011/1/27 Anders F Björklund <a...@algonet.se>:
>>> Here's my current implementation:
>>>
>>> Python: # ignore distepoch
>>> C:      /* ignore distepoch */
>> Do you have any code for it? I'm curious about how you parsed name,
>> version, release etc.
>> with/without disttag/distepoch
>
> As sent to Unity...
Why not just do 'rc = vercmppart(d1, d2);' when already parsing distepoch
and passing it as a new argument to the functions?

That's pretty much all that's needed for supporting distepoch in version
comparision.. :)

smart will still have an issue with composing the package name in ie.
smart/backends/rpm/base.py: search() etc. due to the extra '-' in the
name though..

ie. foo-1-2-2011.0.x86_64 will become:
name: foo-1
verison = 2
release = 2011.0
arch = x86_64

--
Regards,
Per Øyvind
--
Regards,
Per Øyvind
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to