From 6e2111c78fc7025d31e1db7fb88358c706f9928a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Mon, 5 Sep 2011 06:15:15 +0000 Subject: [PATCH] build: Remove the old work directory if exists BUG:FIXED:18497 --- pisi/operations/build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 5a810eca..be2ed8e1 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -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())