From fb849148290dc00b59235bd0525f37ffed806bb2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 Jan 2019 10:35:46 +0100 Subject: bin/db-update -p: moved packages may replace packages in other repositories of same stability - check for that, too, when checking for packages that replace nothing when moved --- bin/db-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 94c1ec6..4f7cfd3 100755 --- a/bin/db-update +++ b/bin/db-update @@ -276,11 +276,15 @@ for source_stability in \ mysql_join_package_sources_upstream_repositories mysql_join_upstream_repositories_repository_moves printf ' AND `repository_moves`.`from_repository`=`binary_packages_in_repositories`.`repository`' + printf ' JOIN `repositories` as `to_r`' + printf ' ON `to_r`.`id`=`repository_moves`.`to_repository`' printf ' WHERE NOT EXISTS (' printf 'SELECT 1 FROM `binary_packages_in_repositories` AS `repl_bpir`' mysql_join_binary_packages_in_repositories_binary_packages 'repl_bpir' 'repl_bp' + mysql_join_binary_packages_in_repositories_repositories 'repl_bpir' 'repl_r' printf ' WHERE `repl_bp`.`pkgname`=`binary_packages`.`pkgname`' - printf ' AND `repl_bpir`.`repository`=`repository_moves`.`to_repository`' + printf ' AND `repl_r`.`stability`=`to_r`.`stability`' + printf ' AND `repl_r`.`architecture`=`to_r`.`architecture`' printf ');\n' else printf 'CALL calculate_maximal_moveable_set(%s);\n' \ -- cgit v1.2.3-70-g09d2