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 <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2022-10-23 09:42:45 -04:00 committed by Sunil Mohan Adapa
parent 63b2e2a380
commit f0fd3d9132
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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: