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>2020-04-17 16:45:05 +0200
committerErich Eckner <git@eckner.net>2020-04-17 16:45:05 +0200
commitb9915b41fb08c30afa46331d104d86138c07c4aa (patch)
tree870845022038c11bffb433d385d2a9454a8ae48b /bin
parenta8acf213a28e15bfcc20b49dd5290b343fcd32ae (diff)
bin/db-update: -f moves all parts of a split package simultanously, now
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/db-update b/bin/db-update
index fe8f167..401ef88 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -9,8 +9,6 @@
# TODO: make (all) locking less restrictive
-# TODO: -f should move *all* parts of the mentioned split package
-
# shellcheck disable=SC2039,SC2119,SC2120
# shellcheck source=../lib/load-configuration
@@ -277,12 +275,17 @@ export TMPDIR="${tmp_dir}"
printf '`binary_packages_in_repositories`.`id`,NULL'
printf ' FROM `binary_packages_in_repositories`'
mysql_join_binary_packages_in_repositories_repositories
+ printf ' AND `repositories`.`is_on_master_mirror`'
mysql_join_repositories_architectures
mysql_join_binary_packages_in_repositories_binary_packages
+ printf ' JOIN `binary_packages` AS `f_bp`'
+ printf ' ON `binary_packages`.`build_assignment`=`f_bp`.`build_assignment`'
+ mysql_join_binary_packages_binary_packages_in_repositories 'f_bp' 'f_bpir'
+ printf ' AND `f_bpir`.`repository`=`repositories`.`id`'
printf ' WHERE CONCAT('
printf '`architectures`.`name`,"/",'
printf '`repositories`.`name`,"/",'
- printf '`binary_packages`.`pkgname`'
+ printf '`f_bp`.`pkgname`'
printf ') IN ('
# shellcheck disable=SC2086
printf 'from_base64("%s"),' \