[Buildroot] [PATCH 10/11] support/scripts/pkg-stats: add package count to stats

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Jan 3 15:35:03 UTC 2020


On Fri,  3 Jan 2020 16:18:47 +0100
Heiko Thiery <heiko.thiery at gmail.com> wrote:

> Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
> ---
>  support/scripts/pkg-stats | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
> index dd3c6566a0..afd9cacafb 100755
> --- a/support/scripts/pkg-stats
> +++ b/support/scripts/pkg-stats
> @@ -457,21 +457,22 @@ def check_package_latest_version(packages):
>          pkg.rm_version['version'] == pkg.current_version
>  
>          if pkg.rm_version['status'] == RM_API_STATUS_ERROR:
> -            pkg.status['version'] = ('warning', 'rm api error')
> +            pkg.status['version'] = ('warning', 'RM API error')
>          elif pkg.rm_version['status'] == RM_API_STATUS_NOT_FOUND:
> -            pkg.status['version'] = ('warning', 'rm package not found')
> +            pkg.status['version'] = ('warning', 'RM package not found')
>  
>          if pkg.rm_version['version'] is None:
>              pkg.status['version'] = ('warning', 'no upstream version available')
>          elif pkg.rm_version['version'] != pkg.current_version:
> -            pkg.status['version'] = ('error', 'package needs update')
> +            pkg.status['version'] = ('error', 'Package needs update')
>          else:
> -            pkg.status['version'] = ('ok', 'up-to-date')
> +            pkg.status['version'] = ('ok', 'update-to-date')
>      del http_pool

The change up to here is not related to the commit title.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list