From 0ee2637d74788347d5a4df161c854c7aa22d0365 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 29 Oct 2018 15:01:56 +0100 Subject: lib/mysql-functions: do not add NULL versions --- lib/mysql-functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/mysql-functions b/lib/mysql-functions index cface1b..5497968 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -541,7 +541,10 @@ mysql_generate_package_metadata() { printf ' SELECT' printf ' `links`.`install_target_epoch`,' printf '`links`.`install_target_version`' - printf ' FROM `links`;\n' + printf ' FROM `links`' + printf ' WHERE `links`.`install_target_epoch` IS NOT NULL' + printf ' AND `links`.`install_target_version` IS NOT NULL' + printf ';\n' for link in 'provides' 'makedepends' 'checkdepends' 'rundepends'; do case "${link}" in -- cgit v1.2.3-70-g09d2