summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit6
1 files changed, 5 insertions, 1 deletions
diff --git a/mockit b/mockit
index 5bdd78d..981f067 100755
--- a/mockit
+++ b/mockit
@@ -35,11 +35,15 @@ else
fi
mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
+srpmdir=/home/rpmbuild/site/rpms
-if [ ! -f $SRPM ]; then
+if [ -f $srpmdir/$SRPM ]; then
+ SRPM=$srpmdir/$SRPM
+elif [ ! -f $SRPM ]; then
echo "file not found '$SRPM'"
exit 1
fi
+
echo mockit $SRPM $DIST $MIN $MAX $@
case $DIST in
fc37x|fc38x|fc39x|el9x)