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