Skip to content

Commit

Permalink
salt: Add a special case for salt downgrade
Browse files Browse the repository at this point in the history
In our custom package manager salt module, add a special case to handle
Salt downgrade, as `yum` do not handle downgrade dependencies properly
you need to provide all dependencies explicitly.

Sees: #2523
  • Loading branch information
TeddyAndrieux committed May 5, 2020
1 parent 6e9bbfd commit e3916c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions salt/_modules/metalk8s_package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ def list_pkg_dependents(
)
return None

# NOTE: Currently dependencies are not properly handle for downgrade
# purpose, only add a special case for `salt` as it's one known issue
# during downgrade
# https://github.com/scality/metalk8s/issues/2523
if name.startswith('salt-'):
all_pkgs['salt'] = version

dependents = _list_dependents(
name,
version,
Expand Down

0 comments on commit e3916c8

Please sign in to comment.