Updated transaction.py
When computing, the package is added to the final state. Added more logging statements Fixed bugs for annotations
This commit is contained in:
parent
8dc0e10969
commit
353dc3f768
|
|
@ -22,12 +22,13 @@ class Transaction:
|
|||
self.pkg_goal: PkgGoal = goal
|
||||
|
||||
|
||||
def compute(self, pkgs: list[bottler._Soybottle]) -> tuple:
|
||||
def compute(self, pkgs: list[bottler.PackageItem]) -> tuple:
|
||||
"""Compute dependencies and conflicts of packages. Returns a list of total packages to install."""
|
||||
self._final_state = []
|
||||
sys_depends = []
|
||||
for pkg in pkgs:
|
||||
...
|
||||
# add the package itself to the final state since it can be installed
|
||||
self._final_state.append(pkg)
|
||||
# :@TODO: compute the dependencies
|
||||
|
||||
return tuple(sys_depends)
|
||||
|
|
@ -35,7 +36,7 @@ class Transaction:
|
|||
|
||||
def apply(self):
|
||||
if self.pkg_goal == PkgGoal.PKG_INSTALL:
|
||||
ops.install_packages(self._final_state)
|
||||
ops.install_packages(self, self._final_state)
|
||||
|
||||
|
||||
def problems(self) -> tuple:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user