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:
Colin Walters 2017-12-06 18:06:26 -05:00 committed by Atomic Bot
parent 906a8a14e0
commit d99175f664
2 changed files with 2 additions and 1 deletions

View File

@ -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");

View File

@ -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