#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
.mode tabs
.output $REPOCOP_TEST_TMPDIR/warn
select distinct pkgid from rpm_files where filename glob '/usr/X11R6/*';
EOSQL
for i in `cat $REPOCOP_TEST_TMPDIR/warn`; do repocop-test-warn -k $i "Packages using the X Window System should not be configured to install files under the /usr/X11R6/ directory. Distros have switched to the modular X tree which now uses regular FHS paths and all packages should follow."; done
rm $REPOCOP_TEST_TMPDIR/*
