From b9c90a356f9e992b6e8a0a7e612a0d0ba11203cd Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Tue, 6 Apr 2010 16:41:32 +0200 Subject: [PATCH] Allow undefined variables --- dist-sync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist-sync b/dist-sync index a003bca..00c4632 100755 --- a/dist-sync +++ b/dist-sync @@ -442,9 +442,9 @@ def parse_config(config): if m: repo = Repo(root=os.path.realpath(os.path.dirname(config.name)), name=m.group(1), - arch=variables['ARCH'], - basearch=variables['BASEARCH'], - release=variables['RELEASE']) + arch=variables.get('ARCH'), + basearch=variables.get('BASEARCH'), + release=variables.get('RELEASE')) result.append(repo) #print m.group(1) continue -- GitLab