#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
.mode tabs
.output $REPOCOP_TEST_TMPDIR/msg
select rpm_requires.pkgid, rpm_requires.requirename from rpm_requires where pkgid glob 'python3-*' and requirename glob 'python-*';
EOSQL
sed -i -e /python-module-pygobject3-common-devel/d $REPOCOP_TEST_TMPDIR/msg
perl -ne 'chomp;@a=split /\t/;system(qw/repocop-test-warn -k/,$a[0], "python3 package requires $a[1].")' $REPOCOP_TEST_TMPDIR/msg
rm -f $REPOCOP_TEST_TMPDIR/*
