From 344c5d2fe9ae5592572fe091b2fc2d716dd33c71 Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.com>
Date: Mon, 16 Mar 2020 10:04:15 +0100
Subject: [PATCH] Remove Fedora 29 mirroring

Remove Fedora 29 from mirroring and purge the content.

The jobs were removed in preparation for
https://review.opendev.org/#/c/712032/ which removed the nodes from
nodepool. So, no job can use Fedora 29 anymore.

Fedora 28 is removed, no need to purge it again.

Change-Id: I59015a880f39b43b57a889b4254353f8c3a557ea
---
 playbooks/roles/mirror-update/files/fedora-mirror-update | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update
index 081c28de0a..269db09acc 100755
--- a/playbooks/roles/mirror-update/files/fedora-mirror-update
+++ b/playbooks/roles/mirror-update/files/fedora-mirror-update
@@ -43,11 +43,10 @@ K5START="k5start -t -f /etc/fedora.keytab service/fedora-mirror -- ${TIMEOUT}"
 echo_ts "----- START FEDORA MIRROR RSYNC RUN -----"
 
 # Purge old releases
-# NOTE(dpawlik) Add releases/29 when all jobs are updated
 echo_ts "Purging old mirrors"
-$K5START rm -rf $BASE/releases/28 $BASE/updates/28
+$K5START rm -rf $BASE/releases/29 $BASE/updates/29
 
-for REPO in releases/29 releases/30 releases/31; do
+for REPO in releases/30 releases/31; do
     if ! [ -f $BASE/$REPO ]; then
         $K5START mkdir -p $BASE/$REPO
     fi
@@ -72,7 +71,7 @@ for REPO in releases/29 releases/30 releases/31; do
     echo_ts "... done"
 done
 
-for REPO in updates/29 updates/30 updates/31; do
+for REPO in updates/30 updates/31; do
     if ! [ -f $BASE/$REPO ]; then
         $K5START mkdir -p $BASE/$REPO
     fi