mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-01 09:30:29 +00:00
upgrades: Use current release codename when enabling backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
d758a917e3
commit
92d39c0b6c
@ -222,7 +222,8 @@ def _check_and_backports_sources():
|
||||
if protocol == 'tor+http':
|
||||
print('Package download over Tor is enabled.')
|
||||
|
||||
dist = 'buster'
|
||||
dist = subprocess.check_output(['lsb_release', '--codename',
|
||||
'--short']).decode().strip()
|
||||
if not _is_release_file_available(protocol, dist):
|
||||
print(f'Release file for {dist}-backports is not available yet.')
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user