From 432a253cc61a4b46d32ad4400edb1496c364419e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 29 Mar 2019 08:38:35 +0100 Subject: [PATCH] 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 --- .../openstack_project/files/mirror/opensuse-mirror-update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh index 52310a4cea..df0297fdf7 100644 --- a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh +++ b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh @@ -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