summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-09 20:47:46 +0100
committerGitHub <noreply@github.com>2022-11-09 20:47:46 +0100
commit62417d5b473abc5d92be997e88cb2355bfbcfcbb (patch)
treead0de5ffab0b568aa87b0a2239dc9c530cca7047
parent5203d31fa2d904a33f58204fb11f794d4bf659c3 (diff)
parent71b8a3e1592d4e5c184b4d235933466f18765ff8 (diff)
downloadvyos-build-62417d5b473abc5d92be997e88cb2355bfbcfcbb.tar.gz
vyos-build-62417d5b473abc5d92be997e88cb2355bfbcfcbb.zip
Merge pull request #280 from jsimpso/additional_repositories
T4796: Check more cautiously for presence of keys
-rwxr-xr-xscripts/build-vyos-image4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 535ea331..baabc7fe 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -383,9 +383,9 @@ if __name__ == "__main__":
# Add custom APT entries
if not args['custom_apt_entry']:
args['custom_apt_entry'] = []
- if build_config['additional_repositories']:
+ if build_config.get('additional_repositories', False):
args['custom_apt_entry'] = args['custom_apt_entry'] + build_config['additional_repositories']
- if build_config['custom_apt_entry']:
+ if build_config.get('custom_apt_entry', False):
custom_apt_file = defaults.CUSTOM_REPO_FILE
entries = "\n".join(build_config['custom_apt_entry'])
if debug: