[PATCH 01/11] Print and remove .cfg files that doesn't exist

Sérgio M. Basto sergio at serjux.com
Thu Nov 10 04:52:02 CET 2016


Also no more ppc arches in Fedora.

Signed-off-by: Sérgio M. Basto <sergio at serjux.com>
---
 el-round.sh | 3 +++
 round.sh    | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)
 mode change 100644 => 100755 el-round.sh

diff --git a/el-round.sh b/el-round.sh
old mode 100644
new mode 100755
index f9040bb..fe534ef
--- a/el-round.sh
+++ b/el-round.sh
@@ -14,6 +14,9 @@ for arch in $ARCHES ; do
   flavour=epel
   ffver=$fver
   if [ ! -f /etc/mock/epel-${fver}-${arch}.cfg ] ; then
+    echo "doesnt exit ${etc_mock}/epel-${fver}-${arch}.cfg"
+    # removing obsoleted .cfg
+    rm -f fedora-${fver}-${arch}-${repo}.cfg
     continue
   fi
   cp /etc/mock/epel-${fver}-${arch}.cfg epel-${fver}-${arch}-${repo}.cfg
diff --git a/round.sh b/round.sh
index cbf95d7..b661200 100755
--- a/round.sh
+++ b/round.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-ARCHES="i386 x86_64 aarch64 armhfp ppc ppc64 ppc64le s390x"
+ARCHES="i386 x86_64 aarch64 armhfp ppc64 ppc64le s390x"
 FVERSION="23 24 25 rawhide"
 REPOS="rpmfusion_free rpmfusion_nonfree kwizart"
 #cd .. ; git clone https://git.fedorahosted.org/git/mock.git ; cd mock
@@ -27,6 +27,8 @@ for arch in $ARCHES ; do
   fi
   if [ ! -f ${etc_mock}/fedora-${fver}-${arch}.cfg ] ; then
     echo "doesnt exit ${etc_mock}/fedora-${fver}-${arch}.cfg"
+    # removing obsoleted .cfg
+    rm -f fedora-${fver}-${arch}-${repo}.cfg
     continue
   fi
   cp ${etc_mock}/fedora-${fver}-${arch}.cfg fedora-${fver}-${arch}-${repo}.cfg
-- 
2.5.5


More information about the rpmfusion-developers mailing list