diff options
author | Erich Eckner <git@eckner.net> | 2018-10-29 15:01:56 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-29 15:01:56 +0100 |
commit | 0ee2637d74788347d5a4df161c854c7aa22d0365 (patch) | |
tree | 6c8526f1c81af7e5b3f6cfda0c32094c57c35b7e | |
parent | b2fff425f4f495450f1af9713b02555637d68db9 (diff) | |
download | builder-0ee2637d74788347d5a4df161c854c7aa22d0365.tar.xz |
lib/mysql-functions: do not add NULL versions
-rwxr-xr-x | lib/mysql-functions | 5 |
1 files changed, 4 insertions, 1 deletions
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 |