Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/find-bootstrap-duplicates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-18 09:02:42 +0200
committerErich Eckner <git@eckner.net>2018-09-18 09:02:42 +0200
commitb934b6217d9f4d99a33ae29c3cca428dbc65e5ab (patch)
treeeb85e1d8f436c083a577e81911914d69db7140bc /find-bootstrap-duplicates
parent5d7ce02fb133f5c9aa70c35a9c3445f06ef0de13 (diff)
find-bootstrap-duplicates: find more issues
Diffstat (limited to 'find-bootstrap-duplicates')
-rwxr-xr-xfind-bootstrap-duplicates51
1 files changed, 40 insertions, 11 deletions
diff --git a/find-bootstrap-duplicates b/find-bootstrap-duplicates
index e5c570d..11184c7 100755
--- a/find-bootstrap-duplicates
+++ b/find-bootstrap-duplicates
@@ -2,7 +2,7 @@
bootstrap_mirror='https://archlinux32.andreasbaumann.cc/bootstrap/i486'
bootstrap_prefix='bootstrap-'
-mirror='https://mirror.archlinux32.org/i486'
+mirror='https://mirror.archlinux32.org'
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
@@ -24,19 +24,48 @@ for repo in \
p
' >> \
"${tmp_dir}/bootstrap"
- curl -Ss "${mirror}/${repo}/${repo}.db.tar.gz" | \
- tar -tz 2>/dev/null | \
- sed -n '
- s,\(-[^-]\+\)\{2\}/$,,
- T
- p
- ' >> \
- "${tmp_dir}/mirror"
+
+ for arch in 'i486' 'i686'; do
+ curl -Ss "${mirror}/${arch}/${repo}/${repo}.db.tar.gz" | \
+ tar -tz 2>/dev/null | \
+ sed -n '
+ s,\(-[^-]\+\)\{2\}/$,,
+ T
+ p
+ ' >> \
+ "${tmp_dir}/${arch}"
+ done
done
{
sort -u "${tmp_dir}/bootstrap"
- sort -u "${tmp_dir}/mirror"
+ sort -u "${tmp_dir}/i486"
+ sort -u "${tmp_dir}/i686" | \
+ sed 'p'
+} | \
+ sort | \
+ uniq -u | \
+ sed '
+ s/^/missing (i486 vs. i686):\t/
+ '
+
+{
+ sort -u "${tmp_dir}/bootstrap"
+ sort -u "${tmp_dir}/i486"
+} | \
+ sort | \
+ uniq -d | \
+ sed '
+ s/^/duplicates:\t/
+ '
+
+{
+ sort -u "${tmp_dir}/bootstrap"
+ sort -u "${tmp_dir}/i486" | \
+ sed 'p'
} | \
sort | \
- uniq -d
+ uniq -u | \
+ sed '
+ s/^/missing (i486 vs. bootstrap):\t/
+ '