[polari] appdata: Ensure up-to-date release version



commit da07825d982e7c8b89012887d8f4286b580724a3
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 14 02:46:38 2020 +0100

    appdata: Ensure up-to-date release version
    
    It's easy to forget to add a new <release> tag to the metainfo when
    doing a new release.
    
    Address this with an additional test if appstream-util is recent
    enough to include the new validate-version command.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/151

 data/appdata/meson.build | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index f65cbc1..9cc74bc 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -13,4 +13,13 @@ if (appstream_util.found())
     args: ['validate', '--nonet', appdata],
     workdir: meson.current_build_dir()
   )
+
+  r = run_command(appstream_util, '--help')
+  if (r.stdout().contains('validate-version'))
+    test('Checking release entry for @0@'.format(meson.project_version()),
+      appstream_util,
+      args: ['validate-version', appdata, meson.project_version()],
+      workdir: meson.current_build_dir()
+    )
+  endif
 endif


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