#!/bin/bash
realpath=`readlink -fn $0`
realdir=`dirname $realpath`
export RPM_CONFIGDIR=$realdir/../../usr/lib/rpm RPM_ETCCONFIGDIR=$realdir/../.. MAGIC=$realdir/../../usr/share/misc/magic.mgc RPM_NO_CHROOT_FOR_SCRIPTS=1
exec -a `dirname $realpath`/rpmdb `dirname $realpath`/rpmdb.real "$@"
