Skip to content

Commit

Permalink
manifest: Skip updating appdata if last source is not external
Browse files Browse the repository at this point in the history
Closes #346
  • Loading branch information
bbhtt committed May 31, 2024
1 parent bf14aa1 commit 8cb93ee
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,18 @@ def _update_appdata(self):
elif data.source_path == self._root_manifest_path:
selected_data = data
else:
# Guess that the last external source in the root manifest is the one
# corresponding to the main application bundle.
assert selected_data is not None
log.warning("Guessed upstream source: %s", selected_data)
log.warning(
"No main source found. Assuming the last source is the main source"
)
if selected_data is not None:
# Guess that the last external source in the root manifest is the one
# corresponding to the main application bundle.
log.warning("Guessed upstream source: %s", selected_data)
else:
log.error(
"The last source is not external. Appdata will not be updated"
)
return

last_update = selected_data.new_version

Expand Down

0 comments on commit 8cb93ee

Please sign in to comment.