Lines 89-98
Link Here
|
89 |
{ |
89 |
{ |
90 |
local rpmarg=$1 |
90 |
local rpmarg=$1 |
91 |
echo processing $rpmarg |
91 |
echo processing $rpmarg |
|
|
92 |
local absrpm |
93 |
case $rpmarg in |
94 |
/*) absrpm=$rpmarg;; |
95 |
*) absrpm=$PWD/$rpmarg;; |
96 |
esac |
92 |
PKGTMPDIR="$(mktemp -dt "${0##*/}.XXXXXXXX")" || exit |
97 |
PKGTMPDIR="$(mktemp -dt "${0##*/}.XXXXXXXX")" || exit |
93 |
export RPM_BUILD_ROOT="$PKGTMPDIR" |
98 |
export RPM_BUILD_ROOT="$PKGTMPDIR" |
94 |
export REPOCOP_PKG_ROOT="$PKGTMPDIR" |
99 |
export REPOCOP_PKG_ROOT="$PKGTMPDIR" |
95 |
export REPOCOP_PKG="$rpmarg" |
100 |
export REPOCOP_PKG="$absrpm" |
96 |
pkgname=`basename $REPOCOP_PKG` |
101 |
pkgname=`basename $REPOCOP_PKG` |
97 |
pkgshortname=${pkgname%%.rpm} |
102 |
pkgshortname=${pkgname%%.rpm} |
98 |
# mark the rpm as processed |
103 |
# mark the rpm as processed |
Lines 125-134
Link Here
|
125 |
if [ ! -e "$PKGTMPDIR/.unpack" ]; then |
130 |
if [ ! -e "$PKGTMPDIR/.unpack" ]; then |
126 |
touch "$PKGTMPDIR/.unpack" |
131 |
touch "$PKGTMPDIR/.unpack" |
127 |
if [ -n "$repocop_use_fakeroot" ]; then |
132 |
if [ -n "$repocop_use_fakeroot" ]; then |
128 |
rpm2cpio "$rpmarg" | fakeroot -s .fakedata -- \ |
133 |
rpm2cpio "$absrpm" | fakeroot -s .fakedata -- \ |
129 |
cpio -idmu --quiet --no-absolute-filenames || exit 2 |
134 |
cpio -idmu --quiet --no-absolute-filenames || exit 2 |
130 |
else |
135 |
else |
131 |
rpm2cpio "$rpmarg" | \ |
136 |
rpm2cpio "$absrpm" | \ |
132 |
cpio -idmu --quiet --no-absolute-filenames || exit 2 |
137 |
cpio -idmu --quiet --no-absolute-filenames || exit 2 |
133 |
fi |
138 |
fi |
134 |
# to speed up skipping |
139 |
# to speed up skipping |