- fail(translate('If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key'))
+ fail('If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key')
+ }
+ }
+ unless $location {
+ $_location = $apt::backports['location']
+ }
+ unless $release {
+ if fact('os.distro.codename') {
+ $_release = "${fact('os.distro.codename')}-backports"
+ } else {
+ fail('os.distro.codename fact not available: release parameter required')