Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-29 15:01:56 +0100
committerErich Eckner <git@eckner.net>2018-10-29 15:01:56 +0100
commit0ee2637d74788347d5a4df161c854c7aa22d0365 (patch)
tree6c8526f1c81af7e5b3f6cfda0c32094c57c35b7e /lib/mysql-functions
parentb2fff425f4f495450f1af9713b02555637d68db9 (diff)
lib/mysql-functions: do not add NULL versions
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions5
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