diff options
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index 438e498..f1b663e 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -682,7 +682,7 @@ mysql_sanity_check() { # recreate the `build_dependency_loops` table mysql_find_build_assignment_loops() { ( # new shell is intentional - tmp_file=$(mktemp "tmp.mysql-functions.mysql_find_build_assignment_loops.XXXXXXXXXX") + tmp_file=$(mktemp 'tmp.mysql-functions.mysql_find_build_assignment_loops.XXXXXXXXXX' --tmpdir) trap 'rm "${tmp_file}"' EXIT { printf 'SELECT DISTINCT `architectures`.`id`' @@ -1178,9 +1178,7 @@ mysql_query_and_delete_unneeded_binary_packages() { mysql_sort_versions() { ( # new shell is intentional - tmp_file=$( - mktemp "tmp.mysql_sort_versions.XXXXXXXXXX" --tmpdir - ) + tmp_file=$(mktemp 'tmp.mysql_sort_versions.XXXXXXXXXX' --tmpdir) trap 'rm "${tmp_file}"' EXIT if [ "x$1" != 'x-f' ] && \ { |