rpm-ostree/tests/check
Colin Walters fee6d06bf4 lib: Expose new API around basearch
For https://pagure.io/atomic-wg/issue/299 we need to make it
more convenient to substitute the architecture in an installation
context.  I plan to use this API inside `rpmostreepayload` in Anaconda,
so we can substitute the same value of `${basearch}` we use in treefiles
since https://github.com/projectatomic/rpm-ostree/pull/305

Now, you might wonder - why do we need an API wrapping libdnf? It's because
libdnf is not API stable yet. We're just exposing a tiny subset. In theory we
could use the Python dnf bindings in Anaconda, but things get slightly weird if
rpmostreepayload depends on dnf. Perhaps we'll do that down the road, but for
now this a small API surface to maintain (forever).

This change reworks the internal `varsubst` bits to take a pure `DnfContext`,
since we don't want to spin up a whole `RpmOstreeContext` just to do some
string substitutions.

Closes: #877
Approved by: jlebon
2017-07-21 16:02:41 +00:00
..
jsonutil.c Switch to glib cleanup macros 2016-07-15 13:08:58 +00:00
postprocess.c postprocess: Handle f26 /etc/nsswitch.conf configuration 2017-03-16 18:39:38 +00:00
test-basic.sh lib: Expose new API around basearch 2017-07-21 16:02:41 +00:00
test-ucontainer.sh tests: transition to build_rpm 2017-06-29 16:16:54 +00:00
test-utils.c tests: transition to build_rpm 2017-06-29 16:16:54 +00:00