summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-05 16:26:22 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-05 16:26:22 +0100
commitd9356599ae399461ddd91a0a38e48615dc94f7d8 (patch)
treea3d56c503e10b85068748d3000a7601183b8e1ed
parent12df89b3055b7c2f46e1db90d725fbfd60a9b40e (diff)
downloadunperish-d9356599ae399461ddd91a0a38e48615dc94f7d8.tar.gz
Create build-area if it does not exist.
-rwxr-xr-xunperish5
1 files changed, 5 insertions, 0 deletions
diff --git a/unperish b/unperish
index 468deba..6518e4b 100755
--- a/unperish
+++ b/unperish
@@ -51,6 +51,7 @@ class Unperish(cliapp.Application):
self.meta = self.create_meta()
self.autofill_meta()
self.read_meta()
+ self.create_build_area()
cmd_methods = self._subcommands()
for arg in args:
@@ -75,6 +76,10 @@ class Unperish(cliapp.Application):
else:
raise cliapp.AppException('unknown command %s' % arg)
+ def create_build_area(self):
+ if not os.path.exists(self.settings['build-area']):
+ os.mkdir(self.settings['build-area'])
+
@property
def upstream_name(self):
return self.meta.get('project', 'name')