summaryrefslogtreecommitdiff
path: root/bin/modify-package-state
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-29 20:08:18 +0100
committerErich Eckner <git@eckner.net>2018-01-29 20:08:18 +0100
commitf5474f73a5b79d85e07bf983a6a783e1e6daa0ea (patch)
tree1708e33fa37a19da14f45a0216ae6e2ad10654e4 /bin/modify-package-state
parentce820e4c454ba94876ccd62e74d27cf24089e27d (diff)
downloadbuilder-f5474f73a5b79d85e07bf983a6a783e1e6daa0ea.tar.xz
bin/modify-package-state: bugfix regarding mysql
Diffstat (limited to 'bin/modify-package-state')
-rwxr-xr-xbin/modify-package-state8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/modify-package-state b/bin/modify-package-state
index 540b333..b157d49 100755
--- a/bin/modify-package-state
+++ b/bin/modify-package-state
@@ -162,16 +162,16 @@ fi
)
pkgbase="${package%.*}"
mod_git_rev=$(
- printf '%s' "${package##*.}" | \
+ printf '%s' "${pkgbase##*.}" | \
base64 -w0
)
pkgbase="${pkgbase%.*}"
git_rev=$(
- printf '%s' "${package##*.}" | \
+ printf '%s' "${pkgbase##*.}" | \
base64 -w0
)
pkgbase=$(
- printf '%s' "${package%.*}" | \
+ printf '%s' "${pkgbase%.*}" | \
base64 -w0
)
if [ "${action}" = 'block' ] || \
@@ -207,7 +207,7 @@ fi
'mod_git_revision' "${mod_git_rev}"
printf ' `upstream_repositories`.`name`=from_base64("%s");\n' \
"${repo}"
- } | \
+ } | tee /dev/stderr | \
${mysql_command}
printf '%s %s\n' "${package}" "${reason}"
fi