[totem] build: Don't require update appdata for devel releases



commit 1f98dab98efbde9e116733693a446267e8911f61
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 1 10:46:22 2020 +0200

    build: Don't require update appdata for devel releases

 meson.build | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 99f610000..8cea90960 100644
--- a/meson.build
+++ b/meson.build
@@ -223,12 +223,21 @@ endif
 
 meson.add_install_script('meson_post_install.py')
 
-meson.add_dist_script(
-  find_program('check-news.sh').path(),
-  '@0@'.format(meson.project_version()),
-  'NEWS',
-  'data/appdata/org.gnome.Totem.appdata.xml.in'
-)
+is_stable = totem_minor_version.is_even()
+if is_stable
+  meson.add_dist_script(
+    find_program('check-news.sh').path(),
+    '@0@'.format(meson.project_version()),
+    'NEWS',
+    'data/appdata/org.gnome.Totem.appdata.xml.in'
+  )
+else
+  meson.add_dist_script(
+    find_program('check-news.sh').path(),
+    '@0@'.format(meson.project_version()),
+    'NEWS',
+  )
+endif
 
 message('Totem was configured with the following options:')
 message('** Using the GStreamer-1.0 backend')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]