Skip to content

Commit

Permalink
fixup! Support Flatpak preinstallation as part of a DNF install
Browse files Browse the repository at this point in the history
  • Loading branch information
owtaylor committed Jan 23, 2025
1 parent 9bd8eee commit ab8fe7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _get_source(self):

return self._source

def calculate_size(self, progress: Optional[ProgressReporter]):
def calculate_size(self):
"""Calculate the download and install size of the Flatpak content.
:param progress: used to report progress of the operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def name(self):
return "Calculate needed space for Flatpaks"

def run(self):
self._flatpak_manager.calculate_size(self)
self._flatpak_manager.calculate_size()


class PrepareDownloadLocationTask(Task):
Expand Down
2 changes: 1 addition & 1 deletion pyanaconda/modules/payloads/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def calculate_required_space(self):
if self.active_payload:
total += self.active_payload.calculate_required_space()
if self._flatpak_side_payload:
self._flatpak_side_payload.set_sources(self.active_payload.get_sources())
self._flatpak_side_payload.set_sources(self.active_payload.sources)
self._flatpak_side_payload.set_flatpak_refs(self.active_payload.get_flatpak_refs())
total += self._flatpak_side_payload.calculate_required_space()

Expand Down

0 comments on commit ab8fe7b

Please sign in to comment.