Merge pull request #40 from aboe76/fix_suse_pkgs_hold

fix issue #39
This commit is contained in:
Niels Abspoel 2019-02-09 20:51:15 +01:00 committed by GitHub
commit d90024f38e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,10 @@ held_pkgs:
{% else %}
- pkgs: {{ held_packages }}
{% endif %}
{% if grains['os_family'] not in ['Suse'] %}
- hold: true
- update_holds: true
{% endif %}
- require:
- pkg: pkg_req_pkgs
{% for dep in req_states %}
@ -43,7 +45,9 @@ held_pkgs:
wanted_pkgs:
pkg.installed:
- pkgs: {{ wanted_packages }}
{% if grains['os_family'] not in ['Suse'] %}
- hold: false
{% endif %}
- require:
- pkg: pkg_req_pkgs
{% if req_states %}