Skip to content

Commit

Permalink
upgrade-check: adapt to upstream changes
Browse files Browse the repository at this point in the history
and probe for the return type of _get_recipe_upgrade_status

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Jul 29, 2024
1 parent 6c161ef commit a191de1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion classes/upgrade-check.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ python do_upgrade_check() {

dc.setVar("SRC_URI", _new)

_, status, _, _, _, _, _ = _get_recipe_upgrade_status(dc)
tmp = _get_recipe_upgrade_status(dc)

if isinstance(tmp, dict):
status = tmp.get('status', 'UNKNOWN')
else:
_, status, _, _, _, _, _ = tmp
if status not in ["MATCH", "UPDATE", "KNOWN_BROKEN", "UNKNOWN"]:
bb.warn("UPSTREAM_CHECK is broken [status = %s], please check variables UPSTREAM_CHECK_REGEX, UPSTREAM_CHECK_URI and others" % status)
}
Expand Down

0 comments on commit a191de1

Please sign in to comment.