87ab4fafb6
In the majority of cases, we just want to know if a deployment is layered and what the base commit is. Make a simpler accessor for this. We can further simplify the logic on the client side here by relying on the fact that there is only a base layer iif we're layered, so we don't need two output variables. I find it also makes things much easier to grok in some places, e.g. in `rpmostreed-deployment-utils.c`, we now have: const char *current_base_checksum = current_base_checksum_owned ?: current_checksum; which better crystallizes what we want to get at. Or e.g. in the sysroot upgrader, we can drop a comment which states something that is now completely obvious. Closes: #1560 Approved by: cgwalters |
||
---|---|---|
.. | ||
org.projectatomic.rpmostree1.conf | ||
org.projectatomic.rpmostree1.policy | ||
org.projectatomic.rpmostree1.service.in | ||
org.projectatomic.rpmostree1.xml | ||
rpm-ostreed-automatic.service.in | ||
rpm-ostreed-automatic.timer | ||
rpm-ostreed-stub.sh.in | ||
rpm-ostreed.conf | ||
rpm-ostreed.service.in | ||
rpmostree-package-variants.c | ||
rpmostree-package-variants.h | ||
rpmostree-sysroot-core.c | ||
rpmostree-sysroot-core.h | ||
rpmostree-sysroot-upgrader.c | ||
rpmostree-sysroot-upgrader.h | ||
rpmostreed-daemon.c | ||
rpmostreed-daemon.h | ||
rpmostreed-deployment-utils.c | ||
rpmostreed-deployment-utils.h | ||
rpmostreed-errors.c | ||
rpmostreed-errors.h | ||
rpmostreed-os-experimental.c | ||
rpmostreed-os-experimental.h | ||
rpmostreed-os.c | ||
rpmostreed-os.h | ||
rpmostreed-sysroot.c | ||
rpmostreed-sysroot.h | ||
rpmostreed-transaction-livefs.c | ||
rpmostreed-transaction-monitor.c | ||
rpmostreed-transaction-monitor.h | ||
rpmostreed-transaction-types.c | ||
rpmostreed-transaction-types.h | ||
rpmostreed-transaction.c | ||
rpmostreed-transaction.h | ||
rpmostreed-types.h | ||
rpmostreed-utils.c | ||
rpmostreed-utils.h |