Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-15 12:43:45 +0100
committerErich Eckner <git@eckner.net>2019-01-15 12:43:45 +0100
commitcd71ffe67de695de22e0db973b22388c2271e325 (patch)
tree448882ffca05493f2a996877293d6bb66b07bcda /bin
parentf1c3315bdd061f4d9474d322e6a716166a9e9760 (diff)
bin/db-update -p: care about versions, too
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/db-update b/bin/db-update
index ed2efe4..468ac34 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -250,12 +250,18 @@ for source_stability in \
mysql_join_binary_packages_dependencies 'old_bp'
mysql_join_dependencies_dependency_types
printf ' AND `dependency_types`.`relevant_for_binary_packages`'
+ mysql_join_dependencies_versions '' 'd_v'
printf ' WHERE NOT EXISTS ('
printf 'SELECT 1 FROM `install_target_providers`'
mysql_join_install_target_providers_binary_packages_in_repositories
mysql_join_binary_packages_in_repositories_repositories
+ mysql_join_install_target_providers_versions '' 'itp_v'
printf ' WHERE `install_target_providers`.`install_target`=`dependencies`.`depending_on`'
- # TODO: we should probably care about versions here, too
+ printf ' AND'
+ mysql_query_ordering_correct \
+ '`d_v`.`order`' \
+ '`itp_v`.`order`' \
+ '`dependencies`.`version_relation`'
printf ' AND `repositories`.`architecture`=`old_r`.`architecture`'
# TODO: also, we might want to consider the stability of the repo
# For this, we would need to determine the least stable package