Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-26 09:09:59 +0200
committerErich Eckner <git@eckner.net>2018-09-26 09:09:59 +0200
commit6a9164dbd3a8d111b48f7f74477cb65fc745c1a7 (patch)
tree53227eab4d2c4b5404bccb21fd4ac78014a7495a /lib
parentc62685fd40cbbf6ba16b440f1fd9c79290080fb7 (diff)
lib/mysql-functions: mysql_generate_package_metadata(): only remove old binary packages without a checksum
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions3
1 files changed, 2 insertions, 1 deletions
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`)'