diff mbox series

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

Message ID 20260507062049.1461147-1-Qi.Chen@windriver.com
State New
Headers show
Series [auh] upgrade-helper.py: add --stable option to do stable version upgrades | expand

Commit Message

Chen, Qi May 7, 2026, 6:20 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

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 <Qi.Chen@windriver.com>
---
 upgrade-helper.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

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 = []