* [PATCH] providers.py: Fix PREFERRED_VERSION containing epochs
@ 2012-10-03 12:29 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-10-03 12:29 UTC (permalink / raw)
To: bitbake-devel
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-03 12:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 12:29 [PATCH] providers.py: Fix PREFERRED_VERSION containing epochs Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox