From 7bf6778b67246cccb243fd4d88d377e0bf48273f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 18 Jun 2020 20:44:43 +0200 Subject: bin/db-update: pin-point error with `db-update -p` --- bin/db-update | 2 ++ 1 file changed, 2 insertions(+) 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`' -- cgit v1.2.3