From f70d5f5c22a63be1709ff2a38f1de67dbc6fcf60 Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Tue, 14 Nov 2023 16:50:32 +0100 Subject: [PATCH] Avoid unintended mass-removals in openqa-auto-update * Same as eef44e1f58851f1f8e27e6b04e40ccd89217f54f but for openqa-auto-update * Workaround https://github.com/openSUSE/zypper/issues/446 * See https://progress.opensuse.org/issues/150845 --- script/openqa-auto-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/openqa-auto-update b/script/openqa-auto-update index b6e49419b57..c3cb89d9d9f 100755 --- a/script/openqa-auto-update +++ b/script/openqa-auto-update @@ -24,6 +24,8 @@ while true; do done "$(dirname "${BASH_SOURCE[0]}")"/openqa-check-devel-repo -zypper -n dup --replacefiles --auto-agree-with-licenses --download-in-advance +# call ref independently of dup to avoid unintended mass-removals in case ref fails (see poo#150845) +zypper -n ref +zypper -n --no-refresh dup --replacefiles --auto-agree-with-licenses --download-in-advance # shellcheck disable=SC2015 needs-restarting --reboothint >/dev/null || (command -v rebootmgrctl >/dev/null && rebootmgrctl reboot ||:)