summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-18 20:44:43 +0200
committerErich Eckner <git@eckner.net>2020-06-18 20:44:43 +0200
commit7bf6778b67246cccb243fd4d88d377e0bf48273f (patch)
tree4e09258e3161c87c3624c586f5c0ad6fdff0ba30 /bin
parent14715e6e424288b1d9906b30be8eeeaab7ede95d (diff)
downloadbuilder-7bf6778b67246cccb243fd4d88d377e0bf48273f.tar.xz
bin/db-update: pin-point error with `db-update -p`
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/db-update b/bin/db-update
index df54bab..acf901a 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -412,6 +412,8 @@ mysql_query_update_replaced_bpir() {
printf ');\n'
printf 'INSERT IGNORE INTO `moveable_bpir` (`id`,`to_repository`)'
+# FIXME: `tm_bpir`.`id` is plain wrong, here. It should be the bpir.id of the package being moved,
+# not of the one being replaced. Uwaga: we need to fill tm_bpir.id into replaced_bpir, too!
printf ' SELECT `tm_bpir`.`id`,`tm_bpir`.`repository`'
printf ' FROM `replaced_bpir`'
printf ' JOIN `binary_packages_in_repositories`'