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

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