[totem/wip/hadess/backend-fixes] data: Fix file validation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/backend-fixes] data: Fix file validation
- Date: Fri, 30 Apr 2021 17:37:57 +0000 (UTC)
commit fa0a441713f0a20a601b3741d7d2d91dc2d2e9fb
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 30 18:52:50 2021 +0200
data: Fix file validation
Because the file to validate wasn't created yet.
/run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml:
/run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml could not be read: Failed to open
file “/run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml”: No such file or directory
/run/build/totem/_flatpak_build/data/org.gnome.Totem.desktop: file does not exist
data/appdata/meson.build | 1 +
data/meson.build | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index 60b0aec23..c4d17e927 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -13,6 +13,7 @@ appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test(
'validate-appdata', appstream_util,
+ depends: appdata_file,
args: ['validate', '--nonet', appdata_file.full_path()]
)
endif
diff --git a/data/meson.build b/data/meson.build
index 32f2f8450..4c6df3ba3 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -83,6 +83,7 @@ if desktop_file_validate.found()
test(
'validate-desktop',
desktop_file_validate,
+ depends: desktop_file,
args: [desktop_file.full_path()]
)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]