diff options
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r-- | morphlib/builder2.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index ac40bf22..9ed75397 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -321,9 +321,10 @@ class ChunkBuilder(BuilderBase): # Get the destination path ccache_destdir= os.path.join(self.staging_area.tempdir, 'tmp', 'ccache') - # Make sure that the destination exists + # Make sure that the destination exists. We'll create /tmp if necessary + # to avoid breaking when faced with an empty staging area. if not os.path.isdir(ccache_destdir): - os.mkdir(ccache_destdir) + os.makedirs(ccache_destdir) # Mount it into the staging-area self.app.runcmd(['mount', '--bind', ccache_repodir, ccache_destdir]) |