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-05-15 15:16:13 +0200
committerErich Eckner <git@eckner.net>2018-05-15 15:16:13 +0200
commita029cf1039088a995ff629eaffe4df1b3fb7c030 (patch)
tree4fc3c117511e4cd667c1c8b346e6190ffb79841a /lib/mysql-functions
parent1276fc83a644462a5017d59c2ce101dd669dbdee (diff)
lib/mysql-functions: make mysql_generate_package_metadata() fool-proof: run mysql_generate_package_metadata() if repository_ids are not yet known
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index dcca437..d3eba77 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -204,6 +204,11 @@ mysql_add_package_source() {
mysql_generate_package_metadata() {
+ # retrieve repository_ids if not yet done
+ if [ -n "${repository_ids__any_build_list}" ]; then
+ mysql_retrieve_repository_ids
+ fi
+
( # new shell is intentional
current_repository_id="$1"
package="$2"