From 69c15c114fcb26cca84a8bcf85624c80d09a6cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 3 Aug 2005 14:25:46 +0000 Subject: [PATCH] =?UTF-8?q?=20=20=20=20build=20=C3=B6ncesi=20work=20ve=20i?= =?UTF-8?q?nstall=20klas=C3=B6rleri=20temizlensin...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pisi/build.py b/pisi/build.py index b27fb240..e54e61c2 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -103,6 +103,10 @@ class PisiBuild: """Build the package in one shot.""" ui.info("Building PISI source package: %s\n" % self.spec.source.name) + + # remove the work/install directory before the build process + if os.path.exists(self.ctx.pkg_dir()): + util.clean_dir(self.ctx.pkg_dir()) self.fetchSourceArchive()