diff --git a/dist-sync b/dist-sync
index a003bca23fc0e30b2cbdc2a17ab194ab09487514..00c4632104a0d00c90961799b80629579e7da0c4 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