Open Martchus opened 2 years ago
This limitation impacted us again: https://progress.opensuse.org/issues/150845
Here many important packages have been uninstalled completely and if would have helped if zypper had aborted after refreshing didn't work.
Maybe we can change this legacy behavior for 15.6/TW.
So there's already a switch to change this behavior?
No, we need to create one to be strict/relaxed.
When calling
zypper dup
repositories are refreshed before the actual update (depending on the configuration of course). If repositories can not be refreshed they are ignored and the update is continued anyways. That behavior is rather dangerous as it can lead to unintended vendor changes.This ticket gives and example: https://progress.opensuse.org/issues/112595#Observation Here we generally want vendor changes to happen (in case we add/remove packages in our custom repo) so we generally allow vendor changes and run and everything happens unattended for the sake of automation. That we might end up with a completely unintended vendor changes because one configured repository is not considered at all is quite dangerous. It woulds be much safer if zypper would abort when refreshing doesn't work.
One can easily reproduce this by e.g. breaking one repository URL (of a repository where auto-update is enabled) and calling
zypper dup
. E.g. herezypper
just skipped the repo and continued instead of aborting due to the error leading zypper to propose an unwanted vendor change: