. ./locations.include
WHERE=`pwd`
if [ $ARCH = "i386" ] ; then
	TESTARCH=i686
else
	TESTARCH=x86_64
fi
BASE_DIR=$RELEASEDIR
OS_DIR=$BASE_DIR/$ARCH/sites/$SITE/RPMS
SECURITY_DIR=$BASE_DIR/$ARCH/sites/$SITE/updates/security
FASTBUGS_DIR=$BASE_DIR/$ARCH/sites/$SITE/updates/fastbugs
SITE_RPMS_DIR=$BASE_DIR/$ARCH/sites/$SITE/$SITERPMDIR
echo "Checking base only"
$WHERE/repoclosure.py --tempcache --newest --repofrompath=os,$OS_DIR  --repoid=os --repofrompath=siteos,$SITE_RPMS_DIR --repoid=siteos -a $TESTARCH
echo "checking base and security"
$WHERE/repoclosure.py --tempcache --newest --repofrompath=os,$OS_DIR --repoid=os --repofrompath=siteos,$SITE_RPMS_DIR  --repoid=siteos --repofrompath=security,$SECURITY_DIR --repoid=security -a $TESTARCH
#echo "checking base and security and fastbugs"
$WHERE/repoclosure.py --tempcache --newest --repofrompath=os,$OS_DIR --repoid=os --repofrompath=siteos,$SITE_RPMS_DIR  --repoid=siteos --repofrompath=security,$SECURITY_DIR --repoid=security --repofrompath=fastbugs,$FASTBUGS_DIR --repoid=fastbugs -a $TESTARCH
