status: Prefix ostree refspecs with ostree://
In preparation for jigdo, which would be like `jigdo://`. Closes: #1136 Approved by: jlebon
This commit is contained in:
parent
906a8a14e0
commit
d99175f664
@ -299,7 +299,7 @@ status_generic (RPMOSTreeSysroot *sysroot_proxy,
|
|||||||
g_print ("%s ", is_booted ? libsd_special_glyph (BLACK_CIRCLE) : " ");
|
g_print ("%s ", is_booted ? libsd_special_glyph (BLACK_CIRCLE) : " ");
|
||||||
|
|
||||||
if (origin_refspec)
|
if (origin_refspec)
|
||||||
g_print ("%s", origin_refspec);
|
g_print ("ostree://%s", origin_refspec);
|
||||||
else
|
else
|
||||||
g_print ("%s", checksum);
|
g_print ("%s", checksum);
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
|
@ -50,6 +50,7 @@ assert_status_jq '.deployments[0].version == "1.0.10"'
|
|||||||
echo "ok status shows right version"
|
echo "ok status shows right version"
|
||||||
|
|
||||||
rpm-ostree status > status.txt
|
rpm-ostree status > status.txt
|
||||||
|
assert_file_has_content status.txt ' ostree://testos:testos/buildmaster/x86_64-runtime'
|
||||||
assert_file_has_content status.txt 'Version: 1.0.10'
|
assert_file_has_content status.txt 'Version: 1.0.10'
|
||||||
assert_not_file_has_content status.txt StateRoot:
|
assert_not_file_has_content status.txt StateRoot:
|
||||||
rpm-ostree status -v > status.txt
|
rpm-ostree status -v > status.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user