Re: [auh][PATCH] upgrade-helper.py: add --stable option to do stable version upgrades

Alexander Kanavin <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <CANNYZj_WqwpxHWs0pBeszPSZZpZZzw_8soL_aVC6O+wG=YK=jQ@mail.gmail.com>
This has been merged, thanks.

Alex

On Thu, 7 May 2026 at 08:21, <[email protected]> wrote:
>
> From: Chen Qi <[email protected]>
>
> Add --stable option to do stable version upgrades for recipes.
> This needs to work with the recipeuitls.py change in oe-core and
> fetchers' changes in bitbake.
>
> Signed-off-by: Chen Qi <[email protected]>
> ---
>  upgrade-helper.py | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/upgrade-helper.py b/upgrade-helper.py
> index 40f31c4..668839a 100755
> --- a/upgrade-helper.py
> +++ b/upgrade-helper.py
> @@ -100,6 +100,8 @@ def parse_cmdline():
>                          help="set the debug level: CRITICAL=1, ERROR=2, WARNING=3, INFO=4, DEBUG=5")
>      parser.add_argument("-e", "--send-emails", action="store_true", default=False,
>                          help="send emails to recipe maintainers")
> +    parser.add_argument("--stable", action="store_true", default=False,
> +                        help="Do stable upgrades")
>      parser.add_argument("-s", "--skip-compilation", action="store_true", default=False,
>                          help="do not compile, just change the checksums, remove PR, and commit")
>      parser.add_argument("-c", "--config-file", default=None,
> @@ -711,7 +713,10 @@ class UniverseUpdater(Updater):
>          upgrade_pkggroups = []
>
>          for layer_name, layer_recipes in self.recipes:
> -            pkggroups = oe.recipeutils.get_recipe_upgrade_status(layer_recipes)
> +            if self.args.stable:
> +                pkggroups = oe.recipeutils.get_recipe_upgrade_status(layer_recipes, stable_upgrade=True)
> +            else:
> +                pkggroups = oe.recipeutils.get_recipe_upgrade_status(layer_recipes)
>
>              for group in pkggroups:
>                  upgrade_group = []
> --
> 2.34.1
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.