#!/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
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/*
