--- repocop-run.orig 2008-03-19 00:42:34 +0300 +++ repocop-run 2008-03-19 00:45:15 +0300 @@ -89,10 +89,15 @@ { local rpmarg=$1 echo processing $rpmarg + local absrpm + case $rpmarg in + /*) absrpm=$rpmarg;; + *) absrpm=$PWD/$rpmarg;; + esac PKGTMPDIR="$(mktemp -dt "${0##*/}.XXXXXXXX")" || exit export RPM_BUILD_ROOT="$PKGTMPDIR" export REPOCOP_PKG_ROOT="$PKGTMPDIR" - export REPOCOP_PKG="$rpmarg" + export REPOCOP_PKG="$absrpm" pkgname=`basename $REPOCOP_PKG` pkgshortname=${pkgname%%.rpm} # mark the rpm as processed @@ -125,10 +130,10 @@ if [ ! -e "$PKGTMPDIR/.unpack" ]; then touch "$PKGTMPDIR/.unpack" if [ -n "$repocop_use_fakeroot" ]; then - rpm2cpio "$rpmarg" | fakeroot -s .fakedata -- \ + rpm2cpio "$absrpm" | fakeroot -s .fakedata -- \ cpio -idmu --quiet --no-absolute-filenames || exit 2 else - rpm2cpio "$rpmarg" | \ + rpm2cpio "$absrpm" | \ cpio -idmu --quiet --no-absolute-filenames || exit 2 fi # to speed up skipping