[gcab] meson: git version is optional
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab] meson: git version is optional
- Date: Fri, 5 Aug 2022 07:18:39 +0000 (UTC)
commit ad0baea50359c1978a9224ee60bf98d97bfb991f
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Fri Aug 5 11:13:41 2022 +0400
meson: git version is optional
My bad, git may be present, but running "git abbrev" from the tarball
extracted project can fail.
Fix commit a755e2ae77035aad9644adadaec5ecf15e9656ba ("meson: fix new
warning about run_command()")
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 15fd5cd..5eba715 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', check:
true).stdout().strip().split('-')
+ git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check:
false).stdout().strip().split('-')
endif
# libtool versioning
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]