From: Ralf Jung Date: Thu, 13 Dec 2012 14:39:54 +0000 (+0100) Subject: do not clean again after building X-Git-Url: https://git.ralfj.de/auto-debuild.git/commitdiff_plain/a9b7bc191644b34394664bbf37a6797d627182bf?ds=inline;hp=49465b61f6d221f4507e9c3c600a48c34a20293f do not clean again after building --- diff --git a/auto_debuild.py b/auto_debuild.py index 2bb4f8c..4c7e10e 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -337,7 +337,7 @@ def createDebianFiles(config): def buildDebianPackage(config): if not isinstance(config, ConfigDict): config = ConfigDict(config) - commands = ['dpkg-checkbuilddeps', 'debian/rules clean', 'debian/rules build', 'fakeroot debian/rules binary', 'debian/rules clean'] + commands = ['dpkg-checkbuilddeps', 'debian/rules clean', 'debian/rules build', 'fakeroot debian/rules binary'] command = ['bash', '-c', ' && '.join(commands)] # make it all one command, so we don't have to open and close the chroot too often subprocess.check_call(commandInBuildEnv(config, command)) shutil.rmtree('debian') # it only contains what we just created