summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit12
1 files changed, 10 insertions, 2 deletions
diff --git a/mockit b/mockit
index 2bccf95..bd740a2 100755
--- a/mockit
+++ b/mockit
@@ -34,8 +34,16 @@ else
shift
fi
-mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
-srpmdir=/home/rpmbuild/site/rpms
+case $DIST in
+ *x)
+ mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
+ srpmdir=/home/rpmbuild/site/rpms/SRPMS
+ ;;
+ *a)
+ mocketc=/home/remi/mock
+ srpmdir=/home/remi/SRPMS
+ ;;
+esac
if [ -f $srpmdir/$SRPM ]; then
SRPM=$srpmdir/$SRPM