[meta-freescale] [Documentation][PATCH] scripts: Take LOCALVERSION into account when emitting versions
Mario Domenech Goulart
mario at ossystems.com.br
Tue Nov 4 08:24:01 PST 2014
extract-bitbake-metadata.py now takes LOCALVERSION into account when
emitting package versions. Versions for packages of recipes that
don't set LOCALVERSION are emitted based on PV only, as before.
Signed-off-by: Mario Domenech Goulart <mario at ossystems.com.br>
---
scripts/extract-bitbake-metadata.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/extract-bitbake-metadata.py b/scripts/extract-bitbake-metadata.py
index 695e8a2..cfd617c 100644
--- a/scripts/extract-bitbake-metadata.py
+++ b/scripts/extract-bitbake-metadata.py
@@ -304,9 +304,13 @@ def extract_bitbake_metadata(recipes):
except:
continue
+ pv = metadata.getVar('PV', True)
+ localversion = metadata.getVar('LOCALVERSION', True)
+ version = pv + (localversion or '')
+
data['recipes'][recipe] = {}
data['recipes'][recipe]['recipe'] = metadata.getVar('PN', True)
- data['recipes'][recipe]['version'] = metadata.getVar('PV', True)
+ data['recipes'][recipe]['version'] = version
data['recipes'][recipe]['file'] = tinfoil.build_target_to_fn(recipe)
data['recipes'][recipe]['srcbranch'] = metadata.getVar('SRCBRANCH', True)
data['recipes'][recipe]['compatible-machine'] = metadata.getVar('COMPATIBLE_MACHINE', True)
--
1.7.10.4
More information about the meta-freescale
mailing list