mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 19:04:15 +02:00
[flatpak] improvement: logging what was requested to upgrade
This commit is contained in:
@@ -297,12 +297,14 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if req.pkg.update_component:
|
if req.pkg.update_component:
|
||||||
|
self.logger.info(f"Installing {req.pkg}")
|
||||||
res, _ = ProcessHandler(watcher).handle_simple(flatpak.install(app_id=ref,
|
res, _ = ProcessHandler(watcher).handle_simple(flatpak.install(app_id=ref,
|
||||||
installation=req.pkg.installation,
|
installation=req.pkg.installation,
|
||||||
origin=req.pkg.origin,
|
origin=req.pkg.origin,
|
||||||
version=flatpak_version))
|
version=flatpak_version))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
self.logger.info(f"Updating {req.pkg}")
|
||||||
res, _ = ProcessHandler(watcher).handle_simple(flatpak.update(app_ref=ref,
|
res, _ = ProcessHandler(watcher).handle_simple(flatpak.update(app_ref=ref,
|
||||||
installation=req.pkg.installation,
|
installation=req.pkg.installation,
|
||||||
related=related,
|
related=related,
|
||||||
|
|||||||
@@ -149,3 +149,10 @@ class FlatpakApplication(SoftwarePackage):
|
|||||||
def update_ref(self):
|
def update_ref(self):
|
||||||
if self.id and self.arch and self.branch:
|
if self.id and self.arch and self.branch:
|
||||||
self.ref = f'{self.id}/{self.arch}/{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__()
|
||||||
|
|||||||
Reference in New Issue
Block a user