Revert "osbuild-depsolve-dnf: port weak dependencies"

This reverts commit e023fdec1b.

Ends up this was based on an older version of dnf-json, the correct
behavior is to use the "install_weak_deps" bool.
This commit is contained in:
Brian C. Lane 2024-02-12 08:21:30 -08:00 committed by Simon de Vlieger
parent f334ca92c6
commit 291f5cc29e

View file

@ -206,13 +206,11 @@ class Solver():
def depsolve(self, transactions):
last_transaction = []
for idx, transaction in enumerate(transactions):
for transaction in transactions:
self.base.reset(goal=True)
self.base.sack.reset_excludes()
# don't install weak-deps for transactions after the 1st transaction
if idx > 0:
self.base.conf.install_weak_deps = False
self.base.conf.install_weak_deps = transaction.get("install_weak_deps", False)
# set the packages from the last transaction as installed
for installed_pkg in last_transaction: