diff mbox series

[auh,10/11] upgrade-helper.py: use global_maintainer_override if it's set and the recipe has no maintainer

Message ID 20260311063557.229656-10-Qi.Chen@windriver.com
State New
Headers show
Series [auh,01/11] upgrade-helper.py: remove unused self.poky_git settings | expand

Commit Message

Chen, Qi March 11, 2026, 6:35 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

If a recipe has no maintainer, it will be skipped, and there's currently
no switch to force the upgrade. Note that for recipes out of oe-core,
it's so common that they do not have some dedicated maintainer.

The global_maintainer_override setting has the meaning of sending
upgrading emails to the specified person. When it's set, someone
must be using auh to do upgrade. In such case, skipping a recipe
merely because it has no maintainer does not make much sense.

So We could extend the meaning of global_maintainer_override a little
bit so that when people set it, recipes with no maintainer can still
be upgraded.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 upgrade-helper.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/upgrade-helper.py b/upgrade-helper.py
index 9920126..8589f8d 100755
--- a/upgrade-helper.py
+++ b/upgrade-helper.py
@@ -712,7 +712,10 @@  class UniverseUpdater(Updater):
             for group in pkggroups:
                 upgrade_group = []
                 for pkg in group:
-                    pkg_to_upgrade = _get_pkg_to_upgrade(self, layer_name, pkg['pn'], pkg['status'], pkg['cur_ver'], pkg['next_ver'], pkg['maintainer'], pkg['revision'], pkg['no_upgrade_reason'])
+                    maintainer = pkg['maintainer']
+                    if not maintainer and 'global_maintainer_override' in settings:
+                        maintainer = settings['global_maintainer_override']
+                    pkg_to_upgrade = _get_pkg_to_upgrade(self, layer_name, pkg['pn'], pkg['status'], pkg['cur_ver'], pkg['next_ver'], maintainer, pkg['revision'], pkg['no_upgrade_reason'])
                     if pkg_to_upgrade:
                         upgrade_group.append(pkg_to_upgrade)
                 if upgrade_group: