From f5474f73a5b79d85e07bf983a6a783e1e6daa0ea Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 29 Jan 2018 20:08:18 +0100 Subject: bin/modify-package-state: bugfix regarding mysql --- bin/modify-package-state | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2