index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-02-13 11:20:08 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-13 11:20:08 +0100 |
commit | 07ed3c88e045d84ab282272c9f1b675c15487ba1 (patch) | |
tree | 718f104e97064514522d1d1d7926dc15ecedace5 | |
parent | a9f0449be9a12ffd6842671eee49fde40b3196f3 (diff) |
-rwxr-xr-x | bin/sanity-check | 17 |
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 } | \ |