From ba59fc49f1a9fee05a3f16ea8a01ae5ecbe15194 Mon Sep 17 00:00:00 2001 From: Kate Date: Mon, 27 Dec 2021 21:51:15 +0000 Subject: [PATCH 1/2] Depexts: Stop zypper from upgrading packages on updates on OpenSUSE --- src/state/opamSysInteract.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/opamSysInteract.ml b/src/state/opamSysInteract.ml index 7e42af732b4..deddb0bbfcc 100644 --- a/src/state/opamSysInteract.ml +++ b/src/state/opamSysInteract.ml @@ -714,7 +714,7 @@ let update () = | Gentoo -> Some ("emerge", ["--sync"]) | Homebrew -> Some ("brew", ["update"]) | Macports -> Some ("port", ["sync"]) - | Suse -> Some ("zypper", ["--non-interactive"; "update"]) + | Suse -> Some ("zypper", ["--non-interactive"; "refresh"]) | Freebsd | Netbsd | Openbsd -> None in From a6372cb317fc907c1be09d4884b1e7421b993be1 Mon Sep 17 00:00:00 2001 From: Kate Date: Mon, 27 Dec 2021 22:22:47 +0000 Subject: [PATCH 2/2] Update master_changes.md --- master_changes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/master_changes.md b/master_changes.md index 0ac1c57d872..6786b964e58 100644 --- a/master_changes.md +++ b/master_changes.md @@ -82,6 +82,7 @@ users) in some cases [#4791 @kit-ty-kate - fixes #4790] * Archlinux: handle virtual package detection [#4831 @rjbou - partial fix #4759] * Fallback on dnf if yum does not exist on RHEL-based systems [#4825 @kit-ty-kate] + * Stop zypper from upgrading packages on updates on OpenSUSE [#4978 @kit-ty-kate] ## Format upgrade * Fix format upgrade when there is missing local switches in the config file [#4763 @rjbou - fix #4713] [2.1.0~rc2 #4715]