#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
.mode tabs
.output $REPOCOP_TEST_TMPDIR/fail
select pkgid from rpm where (name glob 'aspell-*' or name glob 'ispell-*') and arch = 'noarch';
EOSQL
[ -e $REPOCOP_TEST_TMPDIR/fail ] || exit 0

sed -i '/^ispell-ru-lebedev-common-/d;/^aspell-ispell-/d;' $REPOCOP_TEST_TMPDIR/fail
for i in `cat $REPOCOP_TEST_TMPDIR/fail`; do repocop-test-fail -k $i "aspell/ispell packages are endian-sensitive; should be arch"; done
rm $REPOCOP_TEST_TMPDIR/*
