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()