openstack_project: opensuse: Fix OBS repository url

We should only clone packages from the distributions we are interested
in instead of everything that's being published by OBS. This also adds
support for mirroring packages for the latest openSUSE Leap release
(15.0)

Change-Id: Ie7cf6b4bdc8d92e95131b899433527cfea8a4b2a
This commit is contained in:
Markos Chandras 2018-05-08 16:24:50 +01:00
parent 152e454693
commit fa9ab2c992

View File

@ -21,7 +21,8 @@ OBS_MIRROR="rsync://ftp.gwdg.de/pub/opensuse/repositories/"
OBS_REPOS=('Virtualization:/containers' 'Cloud:/OpenStack:/Pike' 'Cloud:/OpenStack:/Queens')
K5START="k5start -t -f /etc/opensuse.keytab service/opensuse-mirror -- timeout -k 2m 30m"
for DISTVER in 42.3; do
# NOTE(hwoarang): 15.0 is newer than 42.3
for DISTVER in 42.3 15.0; do
REPO=distribution/leap/$DISTVER
if ! [ -f $BASE/$REPO ]; then
$K5START mkdir -p $BASE/$REPO
@ -61,7 +62,7 @@ for DISTVER in 42.3; do
--delete-excluded \
--exclude="src/" \
--exclude="nosrc/" \
$OBS_MIRROR/$obs_repo/ $BASE/$REPO/
$OBS_MIRROR/$obs_repo/openSUSE_Leap_${DISTVER}/ $BASE/$REPO/
done
done