Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-13 11:20:08 +0100
committerErich Eckner <git@eckner.net>2018-02-13 11:20:08 +0100
commit07ed3c88e045d84ab282272c9f1b675c15487ba1 (patch)
tree718f104e97064514522d1d1d7926dc15ecedace5
parenta9f0449be9a12ffd6842671eee49fde40b3196f3 (diff)
bin/sanity-check: check full name of package in database
-rwxr-xr-xbin/sanity-check17
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index e31a5ba..39a2d10 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -270,17 +270,18 @@ while [ $# -gt 0 ]; do
errors=$(
{
- tar -tzf "${tmp_dir}/${repo}.db.tar.gz" | \
- grep '/$' | \
- sed '
- s|/$||
- s|^|in_database |
+ tar -Oxzf "${tmp_dir}/${repo}.db.tar.gz" --wildcards '*/desc' 2>/dev/null | \
+ sed -n '
+ /^%FILENAME%$/ {
+ N
+ s/^.*\n/in_database /
+ p
+ }
'
echo "${packages}" | \
- grep '\S' | \
sed '
- s|-[^-]\+$||
- s|^|in_repository |
+ /\.pkg\.tar\.xz$/ !d
+ s/^/in_repository /
' | \
sort -u
} | \