Accepting request 1071181 from KDE:Frameworks5

OBS-URL: https://build.opensuse.org/request/show/1071181
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2023-03-14 17:15:53 +00:00 committed by Git OBS Bridge
commit 35405ec311
3 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 13 10:23:15 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Add upstream fix for new glib-2.76:
* bfa8fa6ac4ef645368a93384a6c16ac551a40922.patch
-------------------------------------------------------------------
Tue Feb 28 14:57:58 UTC 2023 - Fabian Vogt <fvogt@suse.com>

View File

@ -33,6 +33,7 @@ Source0: http://www.freedesktop.org/software/appstream/releases/%{name}-%
Source1: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
Patch0: support-meson0.59.patch
Patch1: https://github.com/ximion/appstream/commit/bfa8fa6ac4ef645368a93384a6c16ac551a40922.patch
BuildRequires: cairo-devel
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gdk-pixbuf-loader-rsvg

View File

@ -0,0 +1,29 @@
From bfa8fa6ac4ef645368a93384a6c16ac551a40922 Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Sun, 12 Mar 2023 17:36:11 +0100
Subject: [PATCH] Add missing standard::is-hidden attribute to file search
enumerator
Resolves: #470
---
src/as-utils.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/as-utils.c b/src/as-utils.c
index 260f3cbf..b983e7ec 100644
--- a/src/as-utils.c
+++ b/src/as-utils.c
@@ -511,7 +511,12 @@ as_utils_find_files_matching (const gchar* dir, const gchar* pattern, gboolean r
list = g_ptr_array_new_with_free_func (g_free);
fdir = g_file_new_for_path (dir);
- enumerator = g_file_enumerate_children (fdir, G_FILE_ATTRIBUTE_STANDARD_NAME, 0, NULL, &tmp_error);
+ enumerator = g_file_enumerate_children (fdir,
+ G_FILE_ATTRIBUTE_STANDARD_NAME ","
+ G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN,
+ 0,
+ NULL,
+ &tmp_error);
if (tmp_error != NULL)
goto out;