summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-10 15:11:34 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-10 15:25:10 +0100
commitff9f8dcfc1b44bd6462da221c6dd0ea6779bf223 (patch)
tree02115f38a01f2ab973754a1f09362db528c9f59d /morph
parentfc7b065ed4fa4914737f4b7852ebd8c76775e304 (diff)
downloadmorph-ff9f8dcfc1b44bd6462da221c6dd0ea6779bf223.tar.gz
morph: create cachedir if missing
Diffstat (limited to 'morph')
-rwxr-xr-xmorph2
1 files changed, 2 insertions, 0 deletions
diff --git a/morph b/morph
index 00fae901..16e77df7 100755
--- a/morph
+++ b/morph
@@ -223,6 +223,8 @@ class Morph(cliapp.Application):
'''
+ if not os.path.exists(self.settings['cachedir']):
+ os.mkdir(self.settings['cachedir'])
cachedir = os.path.join(self.settings['cachedir'], 'gits')
baseurls = self.settings['git-base-url']
bundle_base_url = self.settings['bundle-server']