[pbuilder] 02/04: pdebuild: Check new should_clean_source function before cleaning

James Clarke jrtc27 at moszumanska.debian.org
Thu Jan 19 15:32:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

jrtc27 pushed a commit to branch wip/changes-option
in repository pbuilder.

commit 5f410193434a4ff9f1c1127065a2f5bfa7938918
Author: James Clarke <jrtc27 at debian.org>
Date:   Thu Jan 19 15:15:30 2017 +0000

    pdebuild: Check new should_clean_source function before cleaning
    
    Closes: #851880
---
 pdebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pdebuild b/pdebuild
index 397523e..3a64698 100644
--- a/pdebuild
+++ b/pdebuild
@@ -82,7 +82,9 @@ else
         log.w "Unmet build-dependency in source"
     fi
     dpkg-source --before-build .
-    "${BUILDSOURCEROOTCMD}" debian/rules clean
+    if should_clean_source; then
+        "${BUILDSOURCEROOTCMD}" debian/rules clean
+    fi
     dpkg-source -b .
     if ! [ "../${DSC}" -ef "${BUILDRESULT}/${DSC}" ]; then
         log.i "Generating source changes file for original dsc"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git



More information about the Pbuilder-maint mailing list