[pbuilder] 04/06: buildpackage: make possible to specify BUILDSUBDIR externally, i.e. through pbuilderrc

Mattia Rizzolo mattia at debian.org
Sun Feb 5 15:08:21 UTC 2017


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

mattia pushed a commit to branch master
in repository pbuilder.

commit 854274cf201d0ff02bcd20b3adb79b2b37c5ca0b
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Feb 5 15:58:12 2017 +0100

    buildpackage: make possible to specify BUILDSUBDIR externally, i.e. through pbuilderrc
    
    Closes: #854255
---
 pbuilder-buildpackage | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 004b2f8..37bb288 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -128,7 +128,7 @@ log.i "Copying source file"
 copydsc "$PACKAGENAME" "${BUILDPLACE}$BUILDDIR"
 copyinputfile "${BUILDPLACE}$BUILDDIR"
 
-BUILDSUBDIR="$(dsc_get_basename "$PACKAGENAME" "no" | tr '_' '-')"
+BUILDSUBDIR="${BUILDSUBDIR:-"$(dsc_get_basename "$PACKAGENAME" "no" | tr '_' '-')"}"
 
 log.i "Extracting source"
 if echo "chown $BUILDUSERNAME:$BUILDUSERNAME $BUILDDIR $BUILDDIR/*" | $CHROOTEXEC /bin/bash; then

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