diff mbox series

[1/3] recipeutils: fix NameError for recipes with unreliable upstream checks

Message ID 20261121053846.3614417-1-ragaprasanth@gmail.com
State New
Headers show
Series [1/3] recipeutils: fix NameError for recipes with unreliable upstream checks | expand

Commit Message

Prasanth R Nov. 21, 2026, 5:38 a.m. UTC
Since b1d01911fa ("lib/oe/reciputils.py: parallelize upstream version
checks") pn is no longer set in get_recipe_upgrade_status(), so a recipe
with UPSTREAM_CHECK_UNRELIABLE = "1" makes devtool check-upgrade-status
fail with:

  NameError: name 'pn' is not defined

Take the name from the recipe data instead.

AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
 meta/lib/oe/recipeutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 522537e0d9..9b3a2d0638 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -1186,7 +1186,7 @@  def get_recipe_upgrade_status(recipes=None, stable_upgrade=False):
 
             unreliable = data.getVar('UPSTREAM_CHECK_UNRELIABLE')
             if unreliable == "1":
-                bb.note(" Skip package %s as upstream check unreliable" % pn)
+                bb.note(" Skip package %s as upstream check unreliable" % data.getVar('PN'))
                 continue
 
             data_copy = bb.data.init()