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>2019-02-15 08:41:43 +0100
committerErich Eckner <git@eckner.net>2019-02-15 08:41:43 +0100
commita90b95bdc1fe389eadce4461080bff23176bd6b3 (patch)
tree84dc6b14435829cfdcacc9a04d040c3358c4d9ae /lib/mysql-functions
parenta137bfd03629b2084db412a6dfa304eb1caa87b7 (diff)
lib/mysql-functions: mysql_sanity_check() check for left-over signatures in pool/, too
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 16b7544..950e4ac 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -718,13 +718,9 @@ mysql_sanity_check() {
# shellcheck disable=SC2041
ls_master_mirror 'pool' | \
sed '
- s/\.sig$//
- /\.pkg\.tar\.xz$/ !d
+ /\.pkg\.tar\.xz\(\.sig\)\?$/ !d
' | \
- sort | \
- uniq -c | \
- grep '^\s*2\s' | \
- awk '{print $2}' > \
+ sort -u > \
"${temp_dir}/master-mirror-pool"
{
@@ -747,6 +743,9 @@ mysql_sanity_check() {
printf ')'
} | \
mysql_run_query | \
+ sed '
+ s/^.*$/\0\n\0.sig/
+ ' | \
sort > \
"${temp_dir}/mysql-packages-pool"