upgrades: Rewrite apt prefs file when activating backports

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2020-07-13 14:44:19 -07:00
1 parent ca91120fdc
commit 2176ab97ad
1 file changed
+2
+2
View File
@@ -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():