build: Remove the old work directory if exists

BUG:FIXED:18497
This commit is contained in:
Fatih Aşıcı
2011-09-05 06:15:15 +00:00
parent 365028881a
commit 6e2111c78f
+3
View File
@@ -512,6 +512,9 @@ class Builder:
self.sourceArchives.fetch()
def unpack_source_archives(self):
# Remove the old work directory if exists
util.clean_dir(self.pkg_work_dir())
ctx.ui.action(_("Unpacking archive(s)..."))
self.sourceArchives.unpack(self.pkg_work_dir())