Skip to content

Commit

Permalink
flatpaks: Prevent useless warning in _get_addon_refs_for_pkginfo().
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jun 13, 2024
1 parent cfaf455 commit d785813
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,14 @@ def _get_addon_refs_for_pkginfo(parent_pkginfo):
try:
aspool = pools[parent_pkginfo.remote]
ascomp = aspool.lookup_component(parent_pkginfo, resolve_addons=True)
addons = ascomp.get_addons()

for addon in addons:
info = create_pkginfo_from_as_component(addon, parent_pkginfo.remote, parent_pkginfo.remote_url)
if info:
addon_refs.append(info.refid)
if ascomp is not None:
addons = ascomp.get_addons()

for addon in addons:
info = create_pkginfo_from_as_component(addon, parent_pkginfo.remote, parent_pkginfo.remote_url)
if info:
addon_refs.append(info.refid)
except Exception as e:
debug(str(e))

Expand Down

0 comments on commit d785813

Please sign in to comment.