[meta-freescale] [Documentation][PATCH] scripts: Take LOCALVERSION into account when emitting versions

Daiane Angolini daiane.list at gmail.com
Tue Nov 4 13:22:02 PST 2014


On Tue, Nov 4, 2014 at 2:24 PM, Mario Domenech Goulart
<mario at ossystems.com.br> wrote:
> 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>


Merged

Daiane
> ---
>  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
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list