For some reason the code calls int() on the epoch component of any
PREFERRED_VERSION. Since this is compared against strings, the comparison
would always fail. This removes the stray cast and allows epochs
in preferred_version to work correctly.
[YOCTO #3187]
(Bitbake rev:
117b47553970fc5307374cbf500744b7c302efb4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
m = re.match('(\d+:)*(.*)(_.*)*', preferred_v)
if m:
if m.group(1):
- preferred_e = int(m.group(1)[:-1])
+ preferred_e = m.group(1)[:-1]
else:
preferred_e = None
preferred_v = m.group(2)