mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-12-11 20:32:35 +03:00
scripts/meson-dist.py: Get builddir from env too
When meson runs a dist script it sets both MESON_BUILD_ROOT and MESON_DIST_ROOT envvars [1]. But for some reason, we took the former as an argument and obtained the latter via env. Well, obtain both via env. 1: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonadd_dist_script Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -4,9 +4,9 @@ import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
meson_build_root = sys.argv[1]
|
||||
file_name = sys.argv[2]
|
||||
file_name = sys.argv[1]
|
||||
|
||||
meson_build_root = os.environ['MESON_BUILD_ROOT']
|
||||
meson_dist_root = os.environ['MESON_DIST_ROOT']
|
||||
|
||||
shutil.copy(os.path.join(meson_build_root, file_name),
|
||||
|
||||
Reference in New Issue
Block a user