rpm-ostree/src
Jonathan Lebon 4ad3ea58c6 app: smarter deployment change detection
Commands like `upgrade` and `deploy` need to know if a new deployment
was actually laid down so that it may print a pkg diff if so. This is
implemented by listening for changes to the DefaultDeployment D-Bus
property. D-Bus emits a signal when the deployment variant changes
value.

However, in #595, with the introduction of `pending-*` related keys, the
deployment variant no longer represents data solely tied to that
specific deployment. In this case, because `deploy` operations currently
set the ref to the resolved checksum, it can happen that deploying the
same base commit when the current refspec *isn't* pointing to that base
commit will result in the `pending-*` keys dropping out and a default
deployment change notification going out.

In this patch, we strengthen how we determine whether a new deployment
was laid down by actually looking at the deployment id, rather than just
assuming that a change to the property implies a new deployment.

Closes: #981

Closes: #984
Approved by: cgwalters
2017-09-12 17:23:25 +00:00
..
app app: smarter deployment change detection 2017-09-12 17:23:25 +00:00
daemon daemon/deploy: allow redeploying livefs booted commit 2017-09-12 17:23:25 +00:00
lib lib: Add version macros and version checking function 2017-07-21 20:35:26 +00:00
libpriv Rework treecompose kernel processing 2017-09-12 14:26:44 +00:00