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
This commit is contained in:
Jean-Philippe Evrard 2019-05-28 15:14:59 +02:00
parent 459bc1ab4f
commit 5568a461bf
1 changed files with 3 additions and 0 deletions

View File

@ -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