Blame SOURCES/0000-fix-printing-commits-on-status.patch

0d9b0d
diff --color -urN rpm-ostree-2022.10.90.g4abaf4b4-orig/src/app/rpmostree-builtin-status.cxx rpm-ostree-2022.10.90.g4abaf4b4/src/app/rpmostree-builtin-status.cxx
0d9b0d
--- rpm-ostree-2022.10.90.g4abaf4b4-orig/src/app/rpmostree-builtin-status.cxx	2022-08-16 08:40:32.000000000 -0400
0d9b0d
+++ rpm-ostree-2022.10.90.g4abaf4b4/src/app/rpmostree-builtin-status.cxx	2023-02-07 19:56:17.018048420 -0500
0d9b0d
@@ -489,10 +489,7 @@
0d9b0d
   g_autoptr (GVariant) reposdata = g_variant_dict_lookup_value (
0d9b0d
       commit_meta, "rpmostree.rpmmd-repos", G_VARIANT_TYPE ("aa{sv}"));
0d9b0d
 
0d9b0d
-  if (!reposdata)
0d9b0d
-    return;
0d9b0d
-
0d9b0d
-  const guint n = g_variant_n_children (reposdata);
0d9b0d
+  const guint n = reposdata ? g_variant_n_children (reposdata) : 0;
0d9b0d
   if (n == 0 || !opt_verbose)
0d9b0d
     {
0d9b0d
       /* no repos to print, so this is just a pure kv print */
0d9b0d
diff --color -urN rpm-ostree-2022.10.90.g4abaf4b4-orig/tests/vmcheck/test-misc-2.sh rpm-ostree-2022.10.90.g4abaf4b4/tests/vmcheck/test-misc-2.sh
0d9b0d
--- rpm-ostree-2022.10.90.g4abaf4b4-orig/tests/vmcheck/test-misc-2.sh	2022-08-16 08:40:32.000000000 -0400
0d9b0d
+++ rpm-ostree-2022.10.90.g4abaf4b4/tests/vmcheck/test-misc-2.sh	2023-02-07 19:57:05.111019172 -0500
0d9b0d
@@ -26,6 +26,10 @@
0d9b0d
 
0d9b0d
 # More miscellaneous tests
0d9b0d
 
0d9b0d
+# Verify that the commit is printed in the output
0d9b0d
+vm_rpmostree status > status.txt
0d9b0d
+assert_file_has_content status.txt 'Commit:'
0d9b0d
+
0d9b0d
 # Locked finalization
0d9b0d
 booted_csum=$(vm_get_booted_csum)
0d9b0d
 commit=$(vm_cmd ostree commit -b vmcheck --tree=ref=vmcheck)