commit appstream-glib for openSUSE:Factory
Hello community, here is the log from the commit of package appstream-glib for openSUSE:Factory checked in at 2019-08-09 16:50:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/appstream-glib (Old) and /work/SRC/openSUSE:Factory/.appstream-glib.new.9556 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "appstream-glib" Fri Aug 9 16:50:49 2019 rev:68 rq:721460 version:0.7.14+0 Changes: -------- --- /work/SRC/openSUSE:Factory/appstream-glib/appstream-glib.changes 2018-11-08 09:43:20.625461448 +0100 +++ /work/SRC/openSUSE:Factory/.appstream-glib.new.9556/appstream-glib.changes 2019-08-09 16:50:51.925503452 +0200 @@ -1,0 +2,7 @@ +Wed Aug 7 01:02:48 UTC 2019 - Jonathan Kang <sckang@suse.com> + +- Add as-glib-fix-broken-appstream-files-permission.patch: Do not + preserve restrictive permissions when installing AppStream files + (gh#hughsie/appstream-glib#312). + +------------------------------------------------------------------- New: ---- as-glib-fix-broken-appstream-files-permission.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ appstream-glib.spec ++++++ --- /var/tmp/diff_new_pack.7k3fey/_old 2019-08-09 16:50:53.617503117 +0200 +++ /var/tmp/diff_new_pack.7k3fey/_new 2019-08-09 16:50:53.617503117 +0200 @@ -1,7 +1,7 @@ # # spec file for package appstream-glib # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2014 Dominique Leuenberger, Amsterdam, The Netherlands # # All modifications and additions to the file contributed by third parties @@ -13,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -26,6 +26,8 @@ URL: http://people.freedesktop.org/~hughsient/appstream-glib/ Source0: %{name}-%{version}.tar.xz Source1: openSUSE-appstream-process +#PATCH-FIX-UPSTREAM as-glib-fix-broken-appstream-files-permission.patch gh#hughsie/appstream-glib#312 sckang@suse.com -- Do not preserve restrictive permissions when installing AppStream files. +Patch0: as-glib-fix-broken-appstream-files-permission.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: gcab >= 0.6 BuildRequires: gobject-introspection-devel @@ -150,6 +152,7 @@ %prep %setup -q +%patch0 -p1 %build %meson \ ++++++ as-glib-fix-broken-appstream-files-permission.patch ++++++
From cce510312389efbe3819de0fa53f9004e6e04399 Mon Sep 17 00:00:00 2001 From: Richard Hughes <richard@hughsie.com> Date: Mon, 5 Aug 2019 09:39:29 +0100 Subject: [PATCH] Do not preserve restrictive permissions when installing AppStream files
Fixes https://github.com/hughsie/appstream-glib/issues/312 --- libappstream-glib/as-store.c | 2 +- libappstream-glib/as-utils.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index e435340..3e6502a 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -2561,7 +2561,7 @@ as_store_to_file (AsStore *store, if (!g_file_replace_contents (file, xml->str, xml->len, NULL, FALSE, - G_FILE_CREATE_NONE, + G_FILE_CREATE_REPLACE_DESTINATION, NULL, cancellable, &error_local)) { diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c index 366bff9..10da362 100644 --- a/libappstream-glib/as-utils.c +++ b/libappstream-glib/as-utils.c @@ -1182,8 +1182,7 @@ as_utils_install_xml (const gchar *filename, /* actually copy file */ file_dest = g_file_new_for_path (path_dest); if (!g_file_copy (file_src, file_dest, - G_FILE_COPY_OVERWRITE | - G_FILE_COPY_TARGET_DEFAULT_PERMS, + G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, error)) return FALSE; -- 2.21.0
participants (1)
-
root