From 5568a461bf621f400ce21389cc88f119de29452c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 28 May 2019 15:14:59 +0200 Subject: [PATCH] Exclude tmp files artifacts from syncing It seems the openSUSE build process can leave artifacts behind, in the form of .~tmp~ files in the mirror. I assume these are wrongfully present. This is a problem, as those ~tmp~ files prevent syncing the repositories. While it's most likely that openSUSE files will be cleaned in the source repos, should this problem arise in the future, it's also more robust to skip the syncing of those files. This has the extra benefit of temporarily unblock mirroring of openSUSE Leap 15.1 in infra, as of today. Change-Id: I0124b992483cfda9f97960b43bddf94efa008030 --- .../openstack_project/files/mirror/opensuse-mirror-update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh index 1ebf3b8dd1..76a94c3e1a 100644 --- a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh +++ b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh @@ -61,6 +61,7 @@ for DISTVER in 42.3 15.0 15.1; do --delete --stats \ --delete-excluded \ --exclude="iso" \ + --exclude=".~tmp~" \ $MIRROR/$REPO/ $BASE/$REPO/ REPO=update/leap/$DISTVER @@ -75,6 +76,7 @@ for DISTVER in 42.3 15.0 15.1; do --delete-excluded \ --exclude="src/" \ --exclude="nosrc/" \ + --exclude=".~tmp~" \ $MIRROR/$REPO/ $BASE/$REPO/ done @@ -90,6 +92,7 @@ for obs_repo in ${OBS_REPOS[@]}; do --delete-excluded \ --exclude="src/" \ --exclude="nosrc/" \ + --exclude=".~tmp~" \ $OBS_MIRROR/$obs_repo/ $BASE/$REPO done