summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 27f327b..48fb037 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1062,8 +1062,12 @@ mysql_query_has_pending_dependencies() {
printf ' AND IF('
# ... and if (a) relevant for binary_packages ...
printf '`l_dep_ts`.`relevant_for_binary_packages`'
- # (which includes makedependencies which are haskell packages!)
- printf ' OR `install_targets`.`name` LIKE "haskell-%%",'
+ # (which includes makedependencies which are haskell packages ...
+ printf ' OR ('
+ printf '`install_targets`.`name` LIKE "haskell-%%"'
+ # ... but only if the package itself is not "ghc"!)
+ printf ' AND `todos`.`pkgname` NOT IN ("ghc","ghc-libs","ghc-static")'
+ printf '),'
# ... has some unbuilt provider ...
printf 'EXISTS ('
printf 'SELECT 1'