On 2010-01-15 13:06:10 -0600, Luke Imhoff wrote:
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 = mo1.group(0)
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 ([a-zA-Z]+)
There was a typo in the regex ("..A-z.." instead of "..A-Z.."). I just fixed it in git master. Thanks for the report. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org