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>2018-02-14 11:45:17 +0100
committerErich Eckner <git@eckner.net>2018-02-14 11:45:17 +0100
commit85b734363309052f5c5392751df574130c4d93a5 (patch)
treee6f0456ef76d074174d4ebe4fce420bcece9159e /bin
parentf822d014afa5a48a0335bd5babd97ecf137d9e76 (diff)
bin/mysql-functions: do not increase sub_pkgrel for packages in $current_repo, too (-> split packages should receive identical sub_pkgrels!)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mysql-functions7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions
index f30c9a2..d1a8c2a 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -424,7 +424,9 @@ mysql_generate_package_metadata() {
else
sub_pkgrel=$(
printf '(SELECT COALESCE('
- # do not add binary packages which are currently on the build-list
+ # do not add binary packages which are currently on the
+ # build-list or in $current_repository (beware of split
+ # packages!)
printf '(SELECT `sub_pkgrel` FROM `binary_packages`'
printf ' JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`'
printf ' JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`'
@@ -436,7 +438,8 @@ mysql_generate_package_metadata() {
'pkgname' "${pkgname}"
printf ' `architectures`.`name`=from_base64("%s")' \
"${arch}"
- printf ' AND `repositories`.`name`="build-list"),'
+ printf ' AND `repositories`.`name` IN ("build-list",from_base64("%s"))),' \
+ "${current_repository}"
# max(sub_pkgrel)+1
printf '(SELECT 1+MAX(`binary_packages`.`sub_pkgrel`) FROM `binary_packages`'
printf ' JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`'