summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
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