mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 08:34:17 +02:00
[arch.controller] refactoring: variable name
This commit is contained in:
@@ -2585,11 +2585,11 @@ class ArchManager(SoftwareManager):
|
|||||||
root_password=root_password, handler=handler)
|
root_password=root_password, handler=handler)
|
||||||
|
|
||||||
if pkg.repository == 'aur':
|
if pkg.repository == 'aur':
|
||||||
res = self._install_from_aur(install_context)
|
pkg_installed = self._install_from_aur(install_context)
|
||||||
else:
|
else:
|
||||||
res = self._install_from_repository(install_context)
|
pkg_installed = self._install_from_repository(install_context)
|
||||||
|
|
||||||
if res:
|
if pkg_installed:
|
||||||
pkg.name = install_context.name # changes the package name in case the PKGBUILD was edited
|
pkg.name = install_context.name # changes the package name in case the PKGBUILD was edited
|
||||||
|
|
||||||
if os.path.exists(pkg.get_disk_data_path()):
|
if os.path.exists(pkg.get_disk_data_path()):
|
||||||
@@ -2607,7 +2607,7 @@ class ArchManager(SoftwareManager):
|
|||||||
|
|
||||||
installed = []
|
installed = []
|
||||||
|
|
||||||
if res and disk_loader and install_context.installed:
|
if pkg_installed and disk_loader and install_context.installed:
|
||||||
installed.append(pkg)
|
installed.append(pkg)
|
||||||
|
|
||||||
installed_to_load = []
|
installed_to_load = []
|
||||||
@@ -2628,7 +2628,7 @@ class ArchManager(SoftwareManager):
|
|||||||
self.logger.warning("Could not load all installed packages. Missing: {}".format(missing))
|
self.logger.warning("Could not load all installed packages. Missing: {}".format(missing))
|
||||||
|
|
||||||
removed = [*install_context.removed.values()] if install_context.removed else []
|
removed = [*install_context.removed.values()] if install_context.removed else []
|
||||||
return TransactionResult(success=res, installed=installed, removed=removed)
|
return TransactionResult(success=pkg_installed, installed=installed, removed=removed)
|
||||||
|
|
||||||
def _install_from_repository(self, context: TransactionContext) -> bool:
|
def _install_from_repository(self, context: TransactionContext) -> bool:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user