summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-11-12 09:36:54 +0000
committerGitHub <noreply@github.com>2022-11-12 09:36:54 +0000
commitff651097b1283cf75fa49dac133520d1049a0e98 (patch)
tree109b5b5373c81ec3056180a4ae4e617eb24192b5 /scripts
parent2569433ef680632940e31a1b3c2fe070d449e11b (diff)
parent95620ef20f759ab9b414549708358d306fd52953 (diff)
downloadvyos-build-ff651097b1283cf75fa49dac133520d1049a0e98.tar.gz
vyos-build-ff651097b1283cf75fa49dac133520d1049a0e98.zip
Merge pull request #284 from jsimpso/current
T4796: Honor additional_repositories
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-vyos-image5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index baabc7fe..4cf45134 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -381,10 +381,9 @@ if __name__ == "__main__":
f.write(vyos_repo_entry)
# Add custom APT entries
- if not args['custom_apt_entry']:
- args['custom_apt_entry'] = []
if build_config.get('additional_repositories', False):
- args['custom_apt_entry'] = args['custom_apt_entry'] + build_config['additional_repositories']
+ build_config['custom_apt_entry'] += build_config['additional_repositories']
+
if build_config.get('custom_apt_entry', False):
custom_apt_file = defaults.CUSTOM_REPO_FILE
entries = "\n".join(build_config['custom_apt_entry'])