rpm-ostree/api-doc/rpmostree-sections.txt
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

22 lines
417 B
Plaintext

<SECTION>
<FILE>librpmostree-core</FILE>
rpm_ostree_get_basearch
rpm_ostree_varsubst_basearch
</SECTION>
<SECTION>
<FILE>librpmostree-dbquery</FILE>
rpm_ostree_db_query
</SECTION>
<SECTION>
<FILE>librpmostree-package</FILE>
RpmOstreePackage
rpm_ostree_package_get_type
rpm_ostree_package_get_name
rpm_ostree_package_get_evr
rpm_ostree_package_get_arch
rpm_ostree_package_get_nevra
rpm_ostree_package_cmp
</SECTION>