diff options
author | Richard Purdie <richard@openedhand.com> | 2005-11-03 18:22:25 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-11-03 18:22:25 +0000 |
commit | d910c678defeafa54c27e018922bccfd7bfc11e7 (patch) | |
tree | 2874edf811909212bc57b74695f0a5825e43fb50 /bitbake | |
parent | 36223e6101c2f85df759f7772511033be04b5a99 (diff) | |
download | poky-d910c678defeafa54c27e018922bccfd7bfc11e7.tar.gz |
Update bitbake to use package name as an override when working out PREFERRED_VERSION
git-svn-id: https://svn.o-hand.com/repos/poky@166 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake')
-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 |