summaryrefslogtreecommitdiffstats
path: root/getmock
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-13 10:15:02 +0200
committerRemi Collet <remi@remirepo.net>2017-10-13 10:15:02 +0200
commitddc380e1de3a0d2877462f575f20f85fd8297542 (patch)
tree7d9c846fff6e5e2576b4e94c1e9f05f4840e7f10 /getmock
parenteaf691952d0568c7dc17ea25977d52eb0e2f16d1 (diff)
add safety belt
Diffstat (limited to 'getmock')
-rwxr-xr-xgetmock50
1 files changed, 25 insertions, 25 deletions
diff --git a/getmock b/getmock
index 930f29a..2ef8d62 100755
--- a/getmock
+++ b/getmock
@@ -82,7 +82,7 @@ else
fi
echo Copie de $src vers $cible
-for i in $src/*.rpm
+for i in $src/${3-*}.rpm
do
j=$(basename $i)
case $j in
@@ -205,71 +205,71 @@ if [ $1 = all ]; then
elif [ $1 = all55 ]; then
for n in 6
do
- getOneMock el${n}i php55
- getOneMock el${n}x php55
+ getOneMock el${n}i php55 '*remi.5.5*'
+ getOneMock el${n}x php55 '*remi.5.5*'
done
n=7
- getOneMock el${n}x php55
+ getOneMock el${n}x php55 '*remi.5.5*'
elif [ $1 = all56 ]; then
for n in 6
do
- getOneMock el${n}i php56
- getOneMock el${n}x php56
+ getOneMock el${n}i php56 '*remi.5.6*'
+ getOneMock el${n}x php56 '*remi.5.6*'
done
n=7
- getOneMock el${n}x php56
+ getOneMock el${n}x php56 '*remi.5.6*'
elif [ $1 = all70 ]; then
[ $opt = remi ] && opt=php70
[ $opt = test ] && opt=test70
for n in 24
do
- getOneMock fc${n}i $opt
- getOneMock fc${n}x $opt
+ getOneMock fc${n}i $opt '*remi.7.0*'
+ getOneMock fc${n}x $opt '*remi.7.0*'
done
n=6
- getOneMock el${n}i $opt
- getOneMock el${n}x $opt
+ getOneMock el${n}i $opt '*remi.7.0*'
+ getOneMock el${n}x $opt '*remi.7.0*'
n=7
- getOneMock el${n}x $opt
+ getOneMock el${n}x $opt '*remi.7.0*'
elif [ $1 = all71 ]; then
[ $opt = remi ] && opt=php71
[ $opt = test ] && opt=test71
for n in 24 25
do
- getOneMock fc${n}i $opt
- getOneMock fc${n}x $opt
+ getOneMock fc${n}i $opt '*remi.7.1*'
+ getOneMock fc${n}x $opt '*remi.7.1*'
done
n=6
- getOneMock el${n}i $opt
- getOneMock el${n}x $opt
+ getOneMock el${n}i $opt '*remi.7.1*'
+ getOneMock el${n}x $opt '*remi.7.1*'
n=7
- getOneMock el${n}x $opt
+ getOneMock el${n}x $opt '*remi.7.1*'
elif [ $1 = all72 ]; then
[ $opt = remi ] && opt=php72
[ $opt = test ] && opt=test72
for n in 25 26 27
do
- getOneMock fc${n}i $opt
- getOneMock fc${n}x $opt
+ getOneMock fc${n}i $opt '*remi.7.2*'
+ getOneMock fc${n}x $opt '*remi.7.2*'
done
n=6
- getOneMock el${n}i $opt
- getOneMock el${n}x $opt
+ getOneMock el${n}i $opt '*remi.7.2*'
+ getOneMock el${n}x $opt '*remi.7.2*'
n=7
- getOneMock el${n}x $opt
+ getOneMock el${n}x $opt '*remi.7.2*'
elif [ $1 = all54 ]; then
for n in 6
do
- getOneMock el${n}i remi
- getOneMock el${n}x remi
+ getOneMock el${n}i remi '*remi.5.4*'
+ getOneMock el${n}x remi '*remi.5.4*'
done
n=7
- getOneMock el${n}x remi
+ getOneMock el${n}x remi '*remi.5.4*'
elif [ $1 = for56 ]; then
for i in 24