From 6a9164dbd3a8d111b48f7f74477cb65fc745c1a7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 26 Sep 2018 09:09:59 +0200 Subject: lib/mysql-functions: mysql_generate_package_metadata(): only remove old binary packages without a checksum --- lib/mysql-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/mysql-functions') diff --git a/lib/mysql-functions b/lib/mysql-functions index ad83618..263b4bc 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -496,7 +496,8 @@ mysql_generate_package_metadata() { 'pkgrel' 'pkgrel' printf ') LEFT' mysql_join_binary_packages_binary_packages_in_repositories - printf ' WHERE `binary_packages_in_repositories`.`id` IS NULL;\n' + printf ' WHERE `binary_packages_in_repositories`.`id` IS NULL' + printf ' AND `binary_packages`.`sha512sum` IS NULL;\n' fi printf 'INSERT IGNORE INTO `install_targets` (`name`)' -- cgit v1.2.3-70-g09d2