{% set ns = namespace(found_change=False) %}
{% macro has_changes(changes, capability) %}
{% set ns.found_change = False %}
{% for change in changes %}
{% if change.added.get(capability, []) or change.removed.get(capability, []) %}
{% set ns.found_change = True %}
{% endif %}
{% endfor %}
{{ ns.found_change }}
{% endmacro %}
{% macro has_items(changes, attribute) %}
{% set result = False %}
{% for change in changes %}
{% if change[attribute]|length > 0 %}
{% set result = True %}
{% endif %}
{% endfor %}
{{ result }}
{% endmacro %}
{% if package.requires_changes %}
Requires Changes
Old Version |
New Version |
{% for capability in ["REQUIRES", "PROVIDES", "CONFLICTS", "OBSOLETES", "RECOMMENDS", "SUPPLEMENTS", "SUGGESTS"] %}
{% if has_changes(package.requires_changes, capability)|trim == 'True' %}
Added {{ capability }} |
Removed {{ capability }} |
{% endif %}
{% endfor %}
{% for change in package.requires_changes %}
{{ change.package_old }} |
{{ change.package_new }} |
{% for capability in ["REQUIRES", "PROVIDES", "CONFLICTS", "OBSOLETES", "RECOMMENDS", "SUPPLEMENTS", "SUGGESTS"] %}
{% if has_changes(package.requires_changes, capability)|trim == 'True' %}
{{ change.added.get(capability, [])|join(', ') }} |
{{ change.removed.get(capability, [])|join(', ') }} |
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if package.config_file_changes %}
Config File Changes
Config File |
Package Name |
Options Changed |
Options Removed |
Options Added |
Differences |
Section Removed |
Section Added |
{% for change in package.config_file_changes %}
{{ change.config_file }} |
{{ change.package_name }} |
{% for option in change.options_changed %}
- {{ option }}
{% endfor %}
|
{% for option in change.options_removed %}
- {{ option }}
{% endfor %}
|
{% for option in change.options_added %}
- {{ option }}
{% endfor %}
|
{% for diff in change.config_file_diff %}
- {{ diff }}
{% endfor %}
|
{% for section in change.section_removed %}
- {{ section }}
{% endfor %}
|
{% for section in change.section_added %}
- {{ section }}
{% endfor %}
|
{% endfor %}
{% endif %}
{% if package.compatibility %}
Compatibility
Library Name |
Binary Compatibility |
Source Compatibility |
Binary Compatibility Problems |
Binary Compatibility Warnings |
Source Compatibility Problems |
Source Compatibility Warnings |
{% for compatibility in package.compatibility %}
{{ compatibility.library_name}} |
{{ compatibility.binary_compatibility }} |
{{ compatibility.source_compatibility }} |
{{ compatibility.binary_compatibility_problems }} |
{{ compatibility.binary_compatibility_warnings }} |
{{ compatibility.source_compatibility_problems }} |
{{ compatibility.source_compatibility_warnings }} |
{% endfor %}
{% endif %}
{% endfor %}