From f0fd3d9132eb504a78ba351c63806bf7bc838eb7 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 23 Oct 2022 09:42:45 -0400 Subject: [PATCH] upgrades: Allow FreedomBox vendor when adding backports Fixes: #2294. Tests: - In stable container, when frequent feature updates option is enabled, /etc/apt/sources.list.d/freedombox2.list exists as expected. - Matrix Synapse can be installed. - Shaarli can be installed. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/upgrades/privileged.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/upgrades/privileged.py b/plinth/modules/upgrades/privileged.py index 43a2c2ea3..c6e0b161f 100644 --- a/plinth/modules/upgrades/privileged.py +++ b/plinth/modules/upgrades/privileged.py @@ -249,7 +249,8 @@ def _check_and_backports_sources(develop=False): with open('/etc/dpkg/origins/default', 'r', encoding='utf-8') as default_origin: matches = [ - re.match(r'Vendor:\s+Debian', line, flags=re.IGNORECASE) + re.match(r'Vendor:\s+(Debian|FreedomBox)', line, + flags=re.IGNORECASE) for line in default_origin.readlines() ] except FileNotFoundError: