Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-22 10:13:27 +0100
committerErich Eckner <git@eckner.net>2018-01-22 10:13:27 +0100
commitbbcdedc4794cda338ae005b4d3361cde4fffd9ce (patch)
tree65727457f421bbec07cbaa0dc0f06baad22394c3 /bin/db-update
parente542cd450cd69a07eff6fac75790e6182f42c0e6 (diff)
bin/db-update: fix mysql query
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/db-update b/bin/db-update
index 343b9d4..1417820 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -342,7 +342,7 @@ move_packages() {
"${tmp_dir}/tmp/${package}.to_repo"
)"
printf ' WHERE'
- printf ' `architectures`.`name`=from_base64("%s")' \
+ printf ' `repositories`.`name`=from_base64("%s")' \
"$(
base64_encode_each < \
"${tmp_dir}/tmp/${package}.from_repo"
@@ -364,12 +364,9 @@ move_packages() {
'pkgver' '\3' \
'pkgrel' '\4' \
'sub_pkgrel' '\5'
- printf ' AND `architectures`.`name`=from_base64("\6")'
+ printf ' AND `architectures`.`name`=from_base64("\\6")'
)"',
'
- printf ' AND `binary_packages`.`%s`=from_base64("%s")' \
- 'epoch' "$(
- )"
printf ';\n'
done < \
"${tmp_dir}/tmp/${package}.parts"