diff -Nru appstream-glib-0.8.2/debian/changelog appstream-glib-0.8.2/debian/changelog --- appstream-glib-0.8.2/debian/changelog 2022-11-14 17:53:43.000000000 +0000 +++ appstream-glib-0.8.2/debian/changelog 2024-03-17 10:50:27.000000000 +0000 @@ -1,3 +1,11 @@ +appstream-glib (0.8.2-1.1) unstable; urgency=medium + + * NMU upload + Resolve FTBFS due to yaml mime content-type changes + yaml_content_type.patch (Closes: #1057394) + + -- David Mohammed Sun, 17 Mar 2024 10:50:27 +0000 + appstream-glib (0.8.2-1) unstable; urgency=medium [ Matthias Klumpp ] diff -Nru appstream-glib-0.8.2/debian/patches/series appstream-glib-0.8.2/debian/patches/series --- appstream-glib-0.8.2/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ appstream-glib-0.8.2/debian/patches/series 2024-03-17 10:50:27.000000000 +0000 @@ -0,0 +1 @@ +yaml_content_type.patch diff -Nru appstream-glib-0.8.2/debian/patches/yaml_content_type.patch appstream-glib-0.8.2/debian/patches/yaml_content_type.patch --- appstream-glib-0.8.2/debian/patches/yaml_content_type.patch 1970-01-01 01:00:00.000000000 +0100 +++ appstream-glib-0.8.2/debian/patches/yaml_content_type.patch 2024-03-17 10:50:27.000000000 +0000 @@ -0,0 +1,27 @@ +Forwarded: https://github.com/hughsie/appstream-glib/pull/481 +Author: David Mohammed +Last-Update: 2024-03-16 +Description: [PATCH] Support RFC9512 registration for application/yaml Closes #480 + https://www.rfc-editor.org/rfc/rfc9512.html + +--- + libappstream-glib/as-yaml.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libappstream-glib/as-yaml.c b/libappstream-glib/as-yaml.c +index d764d15..41d7b09 100644 +--- a/libappstream-glib/as-yaml.c ++++ b/libappstream-glib/as-yaml.c +@@ -506,7 +506,8 @@ as_yaml_from_file (GFile *file, AsYamlFromFlags flags, GCancellable *cancellable + g_strcmp0 (content_type, "application/x-gzip") == 0) { + conv = G_CONVERTER (g_zlib_decompressor_new (G_ZLIB_COMPRESSOR_FORMAT_GZIP)); + stream_data = g_converter_input_stream_new (file_stream, conv); +- } else if (g_strcmp0 (content_type, "application/x-yaml") == 0) { ++ } else if (g_strcmp0 (content_type, "application/x-yaml") == 0 || ++ g_strcmp0 (content_type, "application/yaml") == 0) { + stream_data = g_object_ref (file_stream); + } else { + g_set_error (error, +-- +2.43.0 +