rpm-ostree/src/daemon
Jonathan Lebon 87ab4fafb6 libpriv: Add simpler base layer getter
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
2018-09-14 16:49:41 +00:00
..
org.projectatomic.rpmostree1.conf dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
org.projectatomic.rpmostree1.policy Add cancel verb and DBus API 2017-12-07 20:12:52 +00:00
org.projectatomic.rpmostree1.service.in start-daemon: make hidden 2017-02-10 20:11:27 +00:00
org.projectatomic.rpmostree1.xml Stabilize stage automatic update policy 2018-08-21 01:01:45 +00:00
rpm-ostreed-automatic.service.in auto-updates: Redirect output to self if timer 2018-02-28 14:13:47 +00:00
rpm-ostreed-automatic.timer Initial support for automatic updates 2018-01-27 23:52:43 +00:00
rpm-ostreed-stub.sh.in start-daemon: make hidden 2017-02-10 20:11:27 +00:00
rpm-ostreed.conf Initial support for automatic updates 2018-01-27 23:52:43 +00:00
rpm-ostreed.service.in rpm-ostreed.service: tweak description and add doc 2017-12-15 15:23:17 +00:00
rpmostree-package-variants.c lib/db: use new pkglist metadata API if possible 2017-12-30 11:32:38 +00:00
rpmostree-package-variants.h lib/db: use new pkglist metadata API if possible 2017-12-30 11:32:38 +00:00
rpmostree-sysroot-core.c libpriv: Add simpler base layer getter 2018-09-14 16:49:41 +00:00
rpmostree-sysroot-core.h (refactor) Move pkgcache helper function to sysroot-core 2017-11-08 03:11:36 +00:00
rpmostree-sysroot-upgrader.c libpriv: Add simpler base layer getter 2018-09-14 16:49:41 +00:00
rpmostree-sysroot-upgrader.h Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-daemon.c Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-daemon.h Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-deployment-utils.c libpriv: Add simpler base layer getter 2018-09-14 16:49:41 +00:00
rpmostreed-deployment-utils.h daemon/upgrade: Write out new cached update 2018-04-26 21:16:52 +00:00
rpmostreed-errors.c daemon: Rename all the things! 2015-09-09 22:00:05 -04:00
rpmostreed-errors.h daemon: Rename all the things! 2015-09-09 22:00:05 -04:00
rpmostreed-os-experimental.c Introduce ex livefs 2017-05-12 15:00:59 +00:00
rpmostreed-os-experimental.h daemon: Add a separate OSExperimental interface 2017-03-23 19:24:41 +00:00
rpmostreed-os.c Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-os.h daemon: Move deploy parsing down into _new_deploy() 2018-06-12 20:29:56 +00:00
rpmostreed-sysroot.c daemon: Add an 'id' param to RegisterClient, log it 2018-05-16 18:11:40 +00:00
rpmostreed-sysroot.h daemon: Automatically reload sysroot before txn 2018-03-23 21:50:33 +00:00
rpmostreed-transaction-livefs.c livefs: Require deployment staging 2018-08-20 20:32:00 +00:00
rpmostreed-transaction-monitor.c daemon: Support multiple Transaction connections 2015-09-09 22:00:05 -04:00
rpmostreed-transaction-monitor.h daemon: Rename all the things! 2015-09-09 22:00:05 -04:00
rpmostreed-transaction-types.c Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-transaction-types.h Hard require staging 2018-09-11 20:55:48 +00:00
rpmostreed-transaction.c daemon: Add some error prefixing around reloading 2018-05-02 19:20:26 +00:00
rpmostreed-transaction.h daemon/transaction: drop emit_message_printf() helper 2018-02-27 21:14:55 +00:00
rpmostreed-types.h daemon: Add a separate OSExperimental interface 2017-03-23 19:24:41 +00:00
rpmostreed-utils.c Add support for rebase rojig:// 2018-02-02 20:18:58 +00:00
rpmostreed-utils.h deploy: make sure commits are on the current branch 2016-10-20 14:06:58 +00:00