From d3722831a97a1a41cca9312611ffb49ee6a9c411 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Sun, 24 Dec 2023 18:58:48 +0100
Subject: [PATCH] Add confirm option to package update step

---
 .gitlab-ci.yml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 024922fe..4ba2525d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,8 +43,7 @@ building_stage:
       - echo "Getting system info ..."
       - cat /etc/os-release
       - echo "Updating system"
-      - yum check-update
-      - yum update -y
+      - yum check-update -y
       - echo "Installing dependencies"
       - yum install -y g++ gfortran make
       - cd src
@@ -72,8 +71,7 @@ running_stage:
       - echo $CI_COMMIT_SHA
       - echo $CI_COMMIT_BRANCH
       - echo "Updating system"
-      - yum check-update
-      - yum update -y
+      - yum check-update -y
       - echo "Installing dependencies"
       - yum install -y g++ gfortran gdb
       - cd build/sphere
@@ -105,8 +103,7 @@ testing_stage:
       - echo $CI_COMMIT_SHA
       - echo $CI_COMMIT_BRANCH
       - echo "Updating system"
-      - yum check-update
-      - yum update -y
+      - yum check-update -y
       - echo "Installing dependencies ..."
       - yum install -y python3
       - cd build/sphere
-- 
GitLab