[pbuilder] 02/06: buildpackage: use tr(1) instead of doing pattern replacement during variable exapnsion
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 c23f46248393491843658062953bb3325605e097
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Feb 5 15:54:49 2017 +0100
buildpackage: use tr(1) instead of doing pattern replacement during variable exapnsion
saves one line
Gbp-Dch: Ignore
---
pbuilder-buildpackage | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 0c29740..68435c6 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -128,8 +128,7 @@ log.i "Copying source file"
copydsc "$PACKAGENAME" "${BUILDPLACE}$BUILDDIR"
copyinputfile "${BUILDPLACE}$BUILDDIR"
-SUBDIR_NAME=$(dsc_get_basename "$PACKAGENAME" "no")
-SUBDIR_NAME=${SUBDIR_NAME//_/-}
+SUBDIR_NAME="$(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