[gcab] meson: fix new warning about run_command()



commit a755e2ae77035aad9644adadaec5ecf15e9656ba
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Fri Aug 5 10:55:37 2022 +0400

    meson: fix new warning about run_command()
    
    See also:
    https://github.com/mesonbuild/meson/issues/9300
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index d1bd3da..15fd5cd 100644
--- a/meson.build
+++ b/meson.build
@@ -8,7 +8,7 @@ project('gcab', 'c',
 git_version = []
 git = find_program('git', required: false)
 if git.found()
-  git_version = run_command(git, 'describe', '--abbrev=4', '--dirty').stdout().strip().split('-')
+  git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check: 
true).stdout().strip().split('-')
 endif
 
 # libtool versioning


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