wrap: Check the directory key is a name and not a path

Closes #1413.
pull/4431/head
Xavier Claessens 6 years ago committed by Jussi Pakkanen
parent 3dd9c18575
commit be09acbf56
  1. 2
      mesonbuild/wrap/wrap.py

@ -114,6 +114,8 @@ class Resolver:
self.wrap = self.load_wrap()
if self.wrap and 'directory' in self.wrap.values:
self.directory = self.wrap.get('directory')
if os.path.dirname(self.directory):
raise WrapException('Directory key must be a name and not a path')
self.dirname = os.path.join(self.subdir_root, self.directory)
meson_file = os.path.join(self.dirname, 'meson.build')

Loading…
Cancel
Save