mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-29 04:57:52 +00:00
[#3866] Meson: Fix SOURCE_OF_INSTALLATION when git is not installed
This commit is contained in:
parent
0ffbaa27a9
commit
980ff2dfd2
11
meson.build
11
meson.build
@ -530,8 +530,9 @@ kea_pkg_version_in_configure = run_command(
|
|||||||
).stdout().strip()
|
).stdout().strip()
|
||||||
if kea_pkg_type_in_configure != '' and kea_pkg_version_in_configure != ''
|
if kea_pkg_type_in_configure != '' and kea_pkg_version_in_configure != ''
|
||||||
SOURCE_OF_INSTALLATION = f'@kea_pkg_version_in_configure@ @kea_pkg_type_in_configure@'
|
SOURCE_OF_INSTALLATION = f'@kea_pkg_version_in_configure@ @kea_pkg_type_in_configure@'
|
||||||
else
|
elif fs.is_dir('.git')
|
||||||
if fs.is_dir('.git') and git.found()
|
SOURCE_OF_INSTALLATION = 'git'
|
||||||
|
if git.found()
|
||||||
result = run_command(
|
result = run_command(
|
||||||
CD_AND_RUN,
|
CD_AND_RUN,
|
||||||
TOP_SOURCE_DIR,
|
TOP_SOURCE_DIR,
|
||||||
@ -541,11 +542,11 @@ else
|
|||||||
check: false,
|
check: false,
|
||||||
)
|
)
|
||||||
if result.returncode() == 0
|
if result.returncode() == 0
|
||||||
SOURCE_OF_INSTALLATION = 'git ' + result.stdout().strip()
|
SOURCE_OF_INSTALLATION += ' ' + result.stdout().strip()
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
SOURCE_OF_INSTALLATION = 'tarball'
|
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
SOURCE_OF_INSTALLATION = 'tarball'
|
||||||
endif
|
endif
|
||||||
conf_data.set(
|
conf_data.set(
|
||||||
'EXTENDED_VERSION',
|
'EXTENDED_VERSION',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user