bundles/apt: add raspbian to supported OSes

This commit is contained in:
Franzi 2020-10-03 18:36:29 +02:00
parent 2387b196b2
commit c2bcd1f0d9
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1 @@
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

View file

@ -2,6 +2,9 @@ supported_os = {
'debian': {
10: 'buster',
},
'raspbian': {
10: 'buster',
},
}
assert supported_os[node.os][node.os_version[0]], '{}: OS {} {} is not supported by bundle:apt'.format(node.name, node.os, node.os_version)
@ -41,13 +44,19 @@ files = {
'delete': True,
},
'/etc/apt/sources.list': {
'source': 'sources.list-{}'.format(supported_os[node.os][node.os_version[0]]),
'source': 'sources.list-{}-{}'.format(node.os, supported_os[node.os][node.os_version[0]]),
'triggers': {
'action:apt_update',
},
},
}
directories = {
'/etc/apt/sources.list.d': {
'purge': True,
'triggers': {
'action:apt_update',
},
},
}