This commit is contained in:
Gilles Grandou 2023-12-04 14:17:20 +01:00
parent 4c9c879a26
commit 13130bbbe6
2 changed files with 5 additions and 2 deletions

View File

@ -54,10 +54,11 @@ def load_config(conf_name, osname):
}
conf = read_yaml(conf_name)
osconf = conf.get(osname)
osconf['stamp'] = conf.get('stamp')
if not osconf:
print(f"ERROR: cannot find configuration for distribution {osname}")
sys.exit(1)
osconf['stamp'] = conf.get('stamp')
osconf['osname'] = osname
for k in [ 'dockerfile', 'packages', 'environment', 'binds' ]:
if osconf.get(k):

View File

@ -18,5 +18,7 @@ fi
if [ -e $configdir ]; then
echo "remove configs"
rm -vf $configdir/runon.default.yaml
rmdir --ignore-fail-on-non-empty -v $configdir
rmdir -v $configdir || true
fi
echo "done."