dnf: update for DNF 4+ API
Correctly extract packages from transaction items: - old (pre DNF 4): iterate over item.installs() - new (DNF 4+): item.pkg The old DNF is not supported anymore, so do not care about it.
This commit is contained in:
parent
3f728df888
commit
587ac3b3a1
@ -67,8 +67,7 @@ class QubesHooks(dnf.Plugin):
|
|||||||
just_installed = self.base.transaction
|
just_installed = self.base.transaction
|
||||||
# ...and filter them out of available updates
|
# ...and filter them out of available updates
|
||||||
for item in just_installed:
|
for item in just_installed:
|
||||||
for pkg in item.installs():
|
updates.discard(item.pkg)
|
||||||
updates.discard(pkg)
|
|
||||||
subprocess.call([
|
subprocess.call([
|
||||||
'/usr/lib/qubes/qrexec-client-vm',
|
'/usr/lib/qubes/qrexec-client-vm',
|
||||||
'dom0',
|
'dom0',
|
||||||
|
Loading…
Reference in New Issue
Block a user