upgrade-helper.py: add --stable option to do stable version upgrades
PATCH 1/1 upgrade-helper.py: add --stable option to do stable version upgrades
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(-)
upgrade-helper.py +6 -1
@@ -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 = []
Signature · 1 line
2.34.1
This has been merged, thanks.
Alex
Quoted 40 lines · 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.pychange 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(-)upgrade-helper.py +6
-2@@ -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