Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/mysql-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index efa7c54..205c584 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -33,6 +33,7 @@ mysql_run_query() {
local file
local files
local number
+ local trial
file_name_extra=''
if [ "$1" = 'unimportant' ]; then
@@ -56,9 +57,9 @@ mysql_run_query() {
fi
cat
} > "${query_stdin}"
- for _ in $(seq 10); do
+ for trial in $(seq 15); do
if [ -f "${query_stdout}" ]; then
- wait_some_time 10 10
+ wait_some_time "$((10*trial))" "$((10*trial))"
fi
if ${mysql_command} -N --raw --batch "$@" \
< "${query_stdin}" \