[BUG] pkg.uptodate(dist_upgrade=True) with zypper may miss updates #67389
Replies: 3 comments
-
@JanZerebecki if zypperpkg had |
Beta Was this translation helpful? Give feedback.
-
this sounds like two tickets - one to update the docs and one that is a feature request @ScriptAutomate is that how you read this? |
Beta Was this translation helpful? Give feedback.
-
@cmcmarrow @sagetherage I think this is either a bug or a needed feature, from looking at it more, and should probably not involve documentation updates. I'm not sure if there is anything to do at the Documentation level, otherwise Docs would just be saying, "This isn't supported yet for SUSE/SLES systems with the Seems like
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
pkg.uptodate(dist_upgrade=True) with zypper may miss updates as zypperpkg.list_upgrades does not implement dist_upgrade, so only considers normal upgrade. This is not a documented kwarg, but it does work for other implementations, like apt. See uptodate
salt/salt/states/pkg.py
Line 3244 in dc0595c
salt/salt/modules/zypperpkg.py
Line 517 in dc0595c
salt/salt/modules/aptpkg.py
Line 1435 in dc0595c
Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info).
Tested on openSUSE.
Steps to Reproduce the behavior
Create a situation where upgrade and dist-upgrade would do different things. Would probably happen when you install Leap 15.1 and change to 15.2 repos. Then apply state.
Expected behavior
Do the same as
zypper dist-upgrade
.Versions Report
Verified in source on master, see links to source above.
Beta Was this translation helpful? Give feedback.
All reactions