diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-22 17:23:46 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-22 17:23:46 +0900 |
commit | b2c7cafe72b76bc563989d2c1920578dec07c3b5 (patch) | |
tree | 733d778f7c03682ea6b3c8e9bcb0aad5049c89bc /buildstream | |
parent | c568739cd19ef4e48da963938cf31ab34e5d20a6 (diff) | |
download | buildstream-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.py | 3 |
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: |