summaryrefslogtreecommitdiff
path: root/recipes/docbook-xsl.recipe
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-11 13:28:37 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-11 14:24:36 +0200
commit0223404eb1de97b6150358b4b7fb1ecde9a1c10c (patch)
treee41c3e9beb98f1f7ed47ed4237b3655264cdc168 /recipes/docbook-xsl.recipe
parentae2db77894b53209daec896849537ed0450121b9 (diff)
Create 'etc' path if it doesn't exists
Diffstat (limited to 'recipes/docbook-xsl.recipe')
-rw-r--r--recipes/docbook-xsl.recipe5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/docbook-xsl.recipe b/recipes/docbook-xsl.recipe
index edf0f53f..f39ceca3 100644
--- a/recipes/docbook-xsl.recipe
+++ b/recipes/docbook-xsl.recipe
@@ -9,7 +9,10 @@ class Recipe(recipe.Recipe):
def install(self):
import os
- etc_catalog_path = os.path.join(self.config.prefix, 'etc', 'catalog.xml')
+ etc_path = os.path.join(self.config.prefix, 'etc')
+ if not os.path.exists(etc_path):
+ os.makedirs(etc_path)
+ etc_catalog_path = os.path.join(etc_path, 'catalog.xml')
new_catalog_path = os.path.join(self.build_dir, 'catalog.xml')
def read_catalog(path):