[flatpak] improvement: logging what was requested to upgrade

This commit is contained in:
Vinicius Moreira
2022-05-10 18:37:16 -03:00
parent 9bffd3bd5b
commit 3f525bbb3b
2 changed files with 9 additions and 0 deletions

View File

@@ -149,3 +149,10 @@ class FlatpakApplication(SoftwarePackage):
def update_ref(self):
if self.id and self.arch and self.branch:
self.ref = f'{self.id}/{self.arch}/{self.branch}'
def __repr__(self) -> str:
return f'Flatpak (id={self.id}, branch={self.branch}, origin={self.origin}, installation={self.installation},' \
f' partial={self.partial}, update_component={self.update_component})'
def __str__(self):
return self.__repr__()