diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-11 13:28:37 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-11 14:24:36 +0200 |
commit | 0223404eb1de97b6150358b4b7fb1ecde9a1c10c (patch) | |
tree | e41c3e9beb98f1f7ed47ed4237b3655264cdc168 /recipes/docbook-xsl.recipe | |
parent | ae2db77894b53209daec896849537ed0450121b9 (diff) |
Create 'etc' path if it doesn't exists
Diffstat (limited to 'recipes/docbook-xsl.recipe')
-rw-r--r-- | recipes/docbook-xsl.recipe | 5 |
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): |