From 2176ab97adab823e53a9d9fa86b85ceebab35e38 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 5 Jul 2020 22:43:27 -0400 Subject: [PATCH] upgrades: Rewrite apt prefs file when activating backports Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- actions/upgrades | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/upgrades b/actions/upgrades index 1c71988c0..80e065486 100755 --- a/actions/upgrades +++ b/actions/upgrades @@ -230,6 +230,8 @@ def _check_and_backports_sources(): print(f'{dist}-backports is now available. Adding to sources.') _add_backports_sources(SOURCES_LIST, protocol, dist) + # In case of dist upgrade, rewrite the preferences file. + _add_apt_preferences() def _add_apt_preferences():