#!/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 distinct pkgid from RPM_SCRIPTS_POSTIN where POSTINPROG glob '*texhash*' OR POSTIN glob '*texhash*' OR POSTIN glob '*fmtutil*' OR POSTIN glob '*updmap*';
EOSQL
perl -ne 'chomp;@a=split /\t/;system(qw/repocop-test-warn -k/,$a[0], "According to TeX policy (http://www.altlinux.org/TeXPolicy) \%post calls to texhash, updmap and fmtutil are now handled by filetrigger in tex-common package. Please, remove them.")' $REPOCOP_TEST_TMPDIR/msg
rm $REPOCOP_TEST_TMPDIR/*
