From: Richard Purdie Date: Wed, 3 Oct 2012 12:29:59 +0000 (+0100) Subject: bitbake: providers.py: Fix PREFERRED_VERSION containing epochs X-Git-Tag: rev_ivi_2015_02_04~15255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10899dcec161f1dfa924f9c3b51a1d4115b3e013;p=scm%2Fbb%2Ftizen-distro.git bitbake: providers.py: Fix PREFERRED_VERSION containing epochs 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 --- diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index 24cb217..fcee6dc 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py @@ -130,7 +130,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None): 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)