rpm-ostree/tests/check
Jonathan Lebon c08ca8f922 daemon/upgrader: make use of override-commit-ids
Currently, when setting the `override-commit` key in the origin, the
upgrader pulls that commit checksum directly and then updates the
refspec to point to it. This behaviour was inherited from its ostree
version; at the time it was implemented, the pull code didn't support
passing a specific commit for a given refspec. However, we now have
the override-commit-ids option, which will make libostree update the ref
for us.

We change the code here to make use of it and simplify the function.
This also fixes the corner case of local branches: we shouldn't change
the ref if we're on a local branch. This is actually what drove me to
this patch as I was debugging #981.

(Aside: I'm still not convinced updating the refspec is always the
correct thing to do even in the remote case, though it's a bit messy to
disentangle).

Closes: #984
Approved by: cgwalters
2017-09-12 17:23:25 +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 daemon/upgrader: make use of override-commit-ids 2017-09-12 17:23:25 +00:00
test-ucontainer.sh daemon: Add a sanitycheck(/bin/true) before we deploy a tree 2017-07-27 17:58:58 +00:00
test-utils.c tree-wide: Port to ostree_repo_{open,create}_at() 2017-08-17 15:28:14 +00:00