head	1.1;
access;
symbols
	rpm-4_4_8-release:1.1
	jbj_before_refatoring:1.1
	rpm-4_4_7-release:1.1
	rpm-4_4_6-release:1.1
	rpm-4_4_5-release:1.1
	rpm-4_4_4-release:1.1
	rpm-4_4_3-release:1.1
	rpm-4_4:1.1.0.4
	joo_foo:1.1
	pjones-sparse-experiment:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2005.02.08.15.36.30;	author joden;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Adding version 11 of rpm-test-harness.
@
text
@#
# XXX:  This is a hack to make sure that the query is
# ran from the test directory.  The problem is that 
# we get called in the directory where the spec files are.
TESTDIR=$(cd $(dirname $0); pwd)
cd $TESTDIR
. ./conf.sh

#
# Figure out if we need to do a -qa.
if [ $# = 0 ] 
then 
	QUERY=a
else
	QUERY=$1
	shift
fi

$RPM -q${QUERY} --define "${DBPATH_OPT}" $@@
@
