]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
Revert "lib/git_buildpackage.py: Fix build failure caused by calling clean target."
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 12 Dec 2013 15:44:02 +0000 (16:44 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 12 Dec 2013 16:28:01 +0000 (17:28 +0100)
This change was not enough, because pdebuild calls the clean target to a chain.
See http://redmine.pb.local/issues/2744 for details.

This reverts commit 681239fe03ab6f2f4f91f35368199ad9e7dd4880.

lib/git_buildpackage.py

index 4b555a4f9063293114a3ce87aac73b5aa740a113..c7c074c0bc1904b5e2219d0443d99355797e1ac8 100644 (file)
@@ -46,18 +46,12 @@ class GitBuildPackage(object):
         '''
         TODO
         '''
-        # We do want to let dpkg-buildpackage call the clean target, because
-        # it can fail if we do not have all build dependencies installed.
-        # Instead we make sure that the git checkout is clean and the clean
-        # target will be called inside the pbuilder chroot (after the
-        # installation of the build dependencies)
         result = [
                 BIN_SUDO,
                 BIN_GIT_BUILDPACKAGE,
                 '--git-upstream-branch=%s' %(self.upstream_branch),
                 '--git-debian-branch=%s' %(self.debian_branch),
                 '--git-ignore-new',
-                '--git-cleaner=/bin/true',
                 '--debbuildopts', '-b'    # don't build source packages... see directly below
         ]
         return result