#!/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 '*.DS_Store' or filename glob '*.DS_Store.gz';
EOSQL
for i in `cat $REPOCOP_TEST_TMPDIR/warn`; do repocop-test-warn -k $i "There is a file in the package named <tt>.DS_Store</tt> or <tt>.DS_Store.gz</tt>, the file name used by Mac OS X to store folder attributes.  Such files are generally useless in packages and were usually accidentally included by copying complete directories from the source tarball.
"; done
rm $REPOCOP_TEST_TMPDIR/*
