summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-17 12:49:38 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-17 12:49:38 +0000
commit5ddb496be3268cf1236d3d51001386763fb1f87a (patch)
treef95b0f83f6351055142085b3ee783f481489612a /morphlib/builder.py
parentb4e4f3e47ce008ffd59fd50ff20a848369e9db3f (diff)
downloadmorph-5ddb496be3268cf1236d3d51001386763fb1f87a.tar.gz
Add Assert to make sure the destdir muckery is safe
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 95b6c85a..9063bf3e 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -382,6 +382,7 @@ class ChunkBuilder(BlobBuilder):
for key in self.ex.env:
ex.env[key] = self.ex.env[key]
assert self.builddir.startswith(self.staging + '/')
+ assert self.destdir.startswith(self.staging + '/')
builddir = self.builddir[len(self.staging):]
destdir = self.destdir[len(self.staging):]
for cmd in commands: