summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-01-18 15:50:40 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-01-18 15:50:40 +0200
commit6fc60d071638a65ee4e504f705e372b2a4901c2e (patch)
tree085fca69ec86c0ff4b07ea45a37dab7c8e733d91
parent050588f5858a1fa87e2d829f38b009dfeb567970 (diff)
vala-m4: Make sure that the destination directory exists before copying
-rw-r--r--recipes/build-tools/vala-m4.recipe7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/build-tools/vala-m4.recipe b/recipes/build-tools/vala-m4.recipe
index 69b4b34b..17a960b5 100644
--- a/recipes/build-tools/vala-m4.recipe
+++ b/recipes/build-tools/vala-m4.recipe
@@ -25,8 +25,11 @@ class Recipe(recipe.Recipe):
self.version))
def install(self):
- shutil.copyfile(os.path.join(self.build_dir, 'vapigen', 'vapigen.m4'),
+ shutil.copy(os.path.join(self.build_dir, 'vapigen', 'vapigen.m4'),
os.path.join(self.config.install_dir, 'share',
'aclocal', 'vala.m4'))
+ destdir = os.path.join(self.config.install_dir, 'share', 'vala')
+ if not os.path.exists(destdir):
+ os.mkdir(destdir)
shutil.copy(os.path.join(self.build_dir, 'vapigen', 'Makefile.vapigen'),
- os.path.join(self.config.install_dir, 'share', 'vala', 'Makefile.vapigen'))
+ os.path.join(destdir, 'Makefile.vapigen'))