Skip mirroring live and jeos images for opensuse

The only thing used in the CI is the actual repomd
repositories located under repo/{non-,}oss.

In Leap 15.0 over the last few months various images
were added, but we don't need them. Remove them
from the mirroring. The structure looks like this:

  distribution/leap/15.0/:
    - jeos
    - live
    - repo

Change-Id: I00b888b4b11313d83c0025c388937c13a69b1da5
This commit is contained in:
Dirk Mueller 2019-03-29 08:38:35 +01:00
parent 0e206c8ce5
commit 432a253cc6
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ K5START="k5start -t -f /etc/opensuse.keytab service/opensuse-mirror -- timeout -
# NOTE(hwoarang): Ensure old distros are not mirrored aymore
for REPO in distribution/leap/42.2 update/leap/42.2 \
distribution/leap/15.0/jeos distribution/leap/15.0/live \
repositories/Cloud:/OpenStack:/Master/openSUSE_Leap_42.3 ; do
if [ -d $BASE/$REPO ]; then
$K5START rm -rf $BASE/$REPO
@ -36,7 +37,7 @@ done
# NOTE(hwoarang): 15.0 is newer than 42.3.
for DISTVER in 42.3 15.0; do
REPO=distribution/leap/$DISTVER
REPO=distribution/leap/$DISTVER/repo
if ! [ -f $BASE/$REPO ]; then
$K5START mkdir -p $BASE/$REPO
fi