Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
[opensuse-buildservice] [BUG] osc.util.rpmquery.RpmQuery.rpmvercmp does not handle versions
When comparing two rpms with versions

ver1 = '1.8.1_2.6.27.25_1_1.0000.4851.23.1'
ver2 = '1.8.1.move_stuff_2.6.27.25_1_1.0000.4851.23.1'

osc.util.rpmquery.RpmQuery.rpmvercmp errors at

seg1 =

with AttributeError: 'NoneType' object has no attribute 'group'. At
this point in the while loop the ver variable have values:

ver1 = '_2.6.27.25_1_1.0000.4851.23.1'
ver2 = 'move_stuff_2.6.27.25_1_1.0000.4851.23.1'

I'm not sure how ver1 got to start with '_' since it's non-alphanumeric,
but it does lead to mo1 being None since it doesn't start with

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups