summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-22 17:23:46 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-22 17:23:46 +0900
commitb2c7cafe72b76bc563989d2c1920578dec07c3b5 (patch)
tree733d778f7c03682ea6b3c8e9bcb0aad5049c89bc /buildstream
parentc568739cd19ef4e48da963938cf31ab34e5d20a6 (diff)
downloadbuildstream-b2c7cafe72b76bc563989d2c1920578dec07c3b5.tar.gz
source.py: Dont error out if staging directory is not empty.
This is the wrong place for the check, it needs to be done once for the toplevel staging directory, not for each source.
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/source.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index f044ca406..83386f45f 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -252,9 +252,6 @@ class Source(Plugin):
directory = os.path.join(directory, self.__directory.lstrip(os.sep))
os.makedirs(directory, exist_ok=True)
- if os.listdir(directory):
- raise SourceError("Staging directory in '{}' not empty".format(directory))
-
if self._has_workspace():
self._stage_workspace(directory)
else: