diff options
author | Erich Eckner <git@eckner.net> | 2018-05-15 15:16:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-15 15:16:13 +0200 |
commit | a029cf1039088a995ff629eaffe4df1b3fb7c030 (patch) | |
tree | 4fc3c117511e4cd667c1c8b346e6190ffb79841a /lib | |
parent | 1276fc83a644462a5017d59c2ce101dd669dbdee (diff) | |
download | builder-a029cf1039088a995ff629eaffe4df1b3fb7c030.tar.xz |
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')
-rwxr-xr-x | lib/mysql-functions | 5 |
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" |