Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-13 12:25:19 +0200
committerErich Eckner <git@eckner.net>2018-09-13 12:25:19 +0200
commitce4e7ee115389aa5e646abdeb8af1764d182542d (patch)
treee475f51250b07d72251259306ac7f8e9f3c4cce9 /lib/mysql-functions
parentf386388618455fe1f92edf3fbfd812bbf8d1909b (diff)
toolchain_order is now an ordinary table
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 076c868..2e665dd 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1121,34 +1121,6 @@ mysql_query_and_delete_unneeded_binary_packages() {
printf ');\n'
}
-# mysql_query_create_toolchain_order
-# write query, creating `toolchain_order` and `toolchain_order_copy`
-# temporary tables
-mysql_query_create_toolchain_order() {
- # We force the following build order of the tool-chain:
- # linux-api-headers->glibc->binutils->gcc->binutils->glibc
- for suffix in '' '_copy'; do
- printf 'CREATE TEMPORARY TABLE `toolchain_order%s` (' \
- "${suffix}"
- printf '`number` SMALLINT,'
- printf '`pkgbase` VARCHAR(64),'
- printf 'PRIMARY KEY `number`(`number`)'
- printf ');\n'
- done
- printf 'INSERT INTO `toolchain_order` (`number`,`pkgbase`) VALUES '
- printf '(%s,"%s"),' \
- 0 'linux-api-headers' \
- 1 'glibc' \
- 2 'binutils' \
- 3 'gcc' \
- 4 'binutils' \
- 5 'glibc' | \
- sed 's/,$/;\n/'
- printf 'INSERT INTO `toolchain_order_copy` (`number`,`pkgbase`)'
- printf ' SELECT `toolchain_order`.`number`,`toolchain_order`.`pkgbase`'
- printf ' FROM `toolchain_order`;\n'
-}
-
# mysql_update_versions_ordering
# calculate the correct ordering of `versions` entries
mysql_update_versions_ordering() {