summaryrefslogtreecommitdiff
path: root/commitpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-04-02 04:09:55 -0400
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-05 22:11:16 +0200
commitcb35d74f8ce0e1ad489c59d608877e4d6b34ca85 (patch)
tree1e03536795be58879ae0af8964b55545c51b184b /commitpkg.in
parent14d5e1c21b69975a8d30aba059e1012595d48bba (diff)
downloaddevtools32-cb35d74f8ce0e1ad489c59d608877e4d6b34ca85.tar.xz
Avoid using string interpolation; use printf format strings instead.
This involves extending the signature of lib/common.sh's `stat_busy()`, `lock()`, and `slock()`. The `mesg=$1; shift` in stat_busy even suggests that this is what was originally intended from it.
Diffstat (limited to 'commitpkg.in')
-rw-r--r--commitpkg.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 6cf562f..d31f6ba 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -136,7 +136,7 @@ for _arch in ${arch[@]}; do
fullver=$(get_full_version $_pkgname)
if ! pkgfile=$(find_cached_package "$_pkgname" "$fullver" "${_arch}"); then
- warning "Skipping $_pkgname-$fullver-$_arch: failed to locate package file"
+ warning "Skipping %s: failed to locate package file" "$_pkgname-$fullver-$_arch"
skip_arches+=($_arch)
continue 2
fi
@@ -144,7 +144,7 @@ for _arch in ${arch[@]}; do
sigfile="${pkgfile}.sig"
if [[ ! -f $sigfile ]]; then
- msg "Signing package ${pkgfile}..."
+ msg "Signing package %s..." "${pkgfile}"
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY="-u ${GPGKEY}"
fi
@@ -184,7 +184,7 @@ fi
if [[ "${arch[*]}" == 'any' ]]; then
if [[ -d ../repos/$repo-i686 && -d ../repos/$repo-x86_64 ]]; then
pushd ../repos/ >/dev/null
- stat_busy "Removing $repo-i686 and $repo-x86_64"
+ stat_busy "Removing %s and %s" "$repo-i686" "$repo-x86_64"
svn rm -q $repo-i686
svn rm -q $repo-x86_64
svn commit -q -m "Removed $repo-i686 and $repo-x86_64 for $pkgname"
@@ -194,7 +194,7 @@ if [[ "${arch[*]}" == 'any' ]]; then
else
if [[ -d ../repos/$repo-any ]]; then
pushd ../repos/ >/dev/null
- stat_busy "Removing $repo-any"
+ stat_busy "Removing %s" "$repo-any"
svn rm -q $repo-any
svn commit -q -m "Removed $repo-any for $pkgname"
stat_done