Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/modify-package-state
diff options
context:
space:
mode:
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