From e3f3fd1a81a42d2ff47b5dbef7604089f32c03c9 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 26 Jun 2021 00:34:41 +0200 Subject: [PATCH] wip --- bundles/apt/items.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bundles/apt/items.py b/bundles/apt/items.py index e388aaf..29e969a 100644 --- a/bundles/apt/items.py +++ b/bundles/apt/items.py @@ -16,6 +16,12 @@ directories = { 'action:apt_update', }, }, + '/etc/apt/preferences.d': { + 'purge': True, + 'triggers': { + 'action:apt_update', + }, + }, } files = { @@ -82,4 +88,10 @@ for package, options in node.metadata.get('apt/packages', {}).items(): f"Pin: release a={node.metadata.get('os_release')}-backports", f"Pin-Priority: 900", ]), + 'needed_by': [ + f'pkg_apt:{package}', + ], + 'triggers': { + 'action:apt_update', + }, }