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 2020-07-05 22:43:27 -04:00 committed by Sunil Mohan Adapa
parent ca91120fdc
commit 2176ab97ad
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

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():