summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-14 20:30:26 +0200
committerErich Eckner <git@eckner.net>2018-04-14 20:30:26 +0200
commitc4c623edfa0fc621c4df197221364ba1d5612263 (patch)
tree647e017901fed6aa686d7528219e0c0e2189ecf2 /packages
parent4851b38ae1224c59efa84ca37ae727fb08ec6ebd (diff)
downloadarchweb32-c4c623edfa0fc621c4df197221364ba1d5612263.tar.xz
packages/pkginfo.php: add comments
Diffstat (limited to 'packages')
-rw-r--r--packages/pkginfo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 8e5f923..da53b67 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -109,8 +109,10 @@
" AND NOT EXISTS (" .
"SELECT 1 FROM `binary_packages` AS `subst_bp`" .
" JOIN `repositories` AS `subst_r` ON `subst_bp`.`repository`=`subst_r`.`id`" .
+ // the substitue must be truly less stable than the dependency
" JOIN `repository_stability_relations` AS `subst_rsr` ON `subst_rsr`.`less_stable`=`subst_r`.`stability`" .
" AND `subst_rsr`.`less_stable`!=`subst_rsr`.`more_stable`" .
+ // and more (or equally) stable than us
" JOIN `repository_stability_relations` AS `subst_rsr2` ON `subst_rsr2`.`more_stable`=`subst_r`.`stability`" .
" WHERE `subst_bp`.`pkgname`=`binary_packages`.`pkgname`" .
" AND `subst_rsr`.`more_stable`=`repositories`.`stability`" .