Skip to content

Commit

Permalink
rrs_upstream_history: fix get_upstream_info
Browse files Browse the repository at this point in the history
'result' is a list of RecipeUpstream objects... drop legacy 'recipe, ru'
syntax. In the current code base, result.append((recipe, ru)) was
appending a tuple of the last value of 'recipe' (in 'for recipe_qry:' under
'for maintplan in maintplans:') and the RecipeUpstream object.

Fixes:
AttributeError: 'tuple' object has no attribute 'history'

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
  • Loading branch information
moto-timo committed Jan 12, 2024
1 parent 288b2ee commit 0f3299e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrs/tools/rrs_upstream_history.py
Expand Up @@ -143,7 +143,7 @@ def get_upstream_info(layerbranch, recipe_data, result):
ru.no_update_reason = recipe_data.getVar('RECIPE_NO_UPDATE_REASON',
True) or ''

result.append((recipe, ru))
result.append(ru)

if __name__=="__main__":
parser = optparse.OptionParser(usage = """%prog [options]""")
Expand Down

0 comments on commit 0f3299e

Please sign in to comment.