This is generally not recommended (dbus should usually be installed from
the OS distributor's packages, which should install into a staging
directory using `DESTDIR`), but we'll want to use it in Gitlab-CI.
Signed-off-by: Simon McVittie <smcv@collabora.com>
from pathlib import Path
for d in sys.argv[1].split(':'):
- if os.path.isabs(d) and 'DESTDIR' in os.environ:
+ if os.path.isabs(d):
p = Path(d)
d = p.relative_to(p.anchor)
- dest = os.path.join(os.environ['DESTDIR'], d)
+ dest = os.path.join(os.environ.get('DESTDIR', '/'), d)
else:
dest = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], d)
if os.path.isabs(d):
p = Path(d)
d = p.relative_to(p.anchor)
- dest = os.path.join(os.environ['DESTDIR'], d)
+ dest = os.path.join(os.environ.get('DESTDIR', '/'), d)
else:
dest = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], d)