[libgweather/wip/hadess/fix-ci] ci: Work-around old container images



commit 7057fe22377ab9f79b05ccd1bb9126103a7a3c70
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Apr 6 13:57:39 2020 +0200

    ci: Work-around old container images
    
    If the container images are too old, a command like "dnf reinstall"
    might fail because the packages aren't available on the server anymore.
    Simply update those packages instead in that case.

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce0ef2d..ab3931c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,7 @@ build-fedora:
   before_script:
     # Undo delangification present in the Fedora Docker images
     - rm -f /etc/rpm/macros.image-language-conf
-    - dnf reinstall -y glib2 glibc
+    - dnf reinstall -y glib2 glibc || dnf update -y glib2 glibc
     # Add French locale support for tests
     - dnf install -y glibc-langpack-fr
     - dnf install -y redhat-rpm-config meson libxml2-devel vala gettext itstool gtk3-devel 
geocode-glib-devel gobject-introspection-devel libsoup-devel libabigail git


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]