#!/bin/sh
# 2003-2006 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# $Id: rpmqf,v 1.7 2006/02/18 21:59:07 lav Exp $
#
# ,      ,   which
# :
# -  
# TODO not -i only, we need any key

#. /etc/rpm/etersoft-build-functions

if [ "$1" = "-h" ]; then
	echo "rpmqf - the same as rpm -qf"
	exit 0
fi

if [ "$1" = "-i" ]; then
	ARG=$1
	shift
fi

rpm -qf $ARG `which $1`
