diff options
-rwxr-xr-x | bitbake/bin/bitbake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index d327a69ab8..dac3c93749 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -281,7 +281,11 @@ class BBCooker: | |||
281 | 281 | ||
282 | preferred_file = None | 282 | preferred_file = None |
283 | 283 | ||
284 | preferred_v = bb.data.getVar('PREFERRED_VERSION_%s' % pn, self.configuration.data, 1) | 284 | localdata = data.createCopy(self.configuration.data) |
285 | bb.data.setVar('OVERRIDES', "%s:%s" % (pn, data.getVar('OVERRIDES', localdata)), localdata) | ||
286 | bb.data.update_data(localdata) | ||
287 | |||
288 | preferred_v = bb.data.getVar('PREFERRED_VERSION_%s' % pn, localdata, 1) | ||
285 | if preferred_v: | 289 | if preferred_v: |
286 | m = re.match('(.*)_(.*)', preferred_v) | 290 | m = re.match('(.*)_(.*)', preferred_v) |
287 | if m: | 291 | if m: |
@@ -308,6 +312,8 @@ class BBCooker: | |||
308 | else: | 312 | else: |
309 | bb.debug(1, "selecting %s as PREFERRED_VERSION %s of package %s" % (preferred_file, pv_str, pn)) | 313 | bb.debug(1, "selecting %s as PREFERRED_VERSION %s of package %s" % (preferred_file, pv_str, pn)) |
310 | 314 | ||
315 | del localdata | ||
316 | |||
311 | # get highest priority file set | 317 | # get highest priority file set |
312 | files = tmp_pn[0] | 318 | files = tmp_pn[0] |
313 | latest = None | 319 | latest = None |