projectatomic/rpm-ostree-toolbox — pull request #8 by baude (2014-10-14 21:07:51+00:00)
Title: taskbase: Use values from ini, override with json

taskbase: Flatten json file(s) input to tempdir
taskbase: copy repo file(s) to tempdir

Certain required variables in ini files like ref were unused in
tree composes. These fixes result in using setting a rule that
if the value is in the ini file, use it but it can be overriden
by input from a json file. The ini variable is then added to a
temporary json file that is stored in a tempdir and consumed by
'rpm-ostree compose tree'.

Along with adding the ini content to the json file, a function
was also added to detect if the json file has an include
statement. If so, it will inherit the included json file
content and merge the two with the following rules:

* if the key value doesn't exist in the json, add it
* if the key value is a list and does exist, merge and
remove duplicates.

And finally, to make processing for 'rpm-ostree tree compose'
easier, the detected repo files are copied to the temp dir.