{%- if with_subject %}Subject: [{{ advisory.id }}] {{ package.pkgname }}: {{ advisory.advisory_type }}

{% endif -%}
{% set asa_title = 'Arch Linux Security Advisory ' + advisory.id %}
{{- asa_title }}
{% set asa_title_separator = '=' * asa_title|length %}
{{- asa_title_separator }}

Severity: {{ group.severity }}
Date    : {{ advisory.created.strftime('%Y-%m-%d') }}
CVE-ID  : {{ issue_listing_formatted }}
Package : {{ package.pkgname }}
Type    : {{ advisory.advisory_type }}
Remote  : {%if not remote %}No{% else %}Yes{% endif %}
Link    : {{ link }}

Summary
=======

{% macro summary() -%}
The package {{ package.pkgname }} before version {{ group.fixed }} is vulnerable to {{ advisory.advisory_type}}
{%- if unique_issue_types|length > 1 %} including{%- raw %} {% endraw %}
	{%- for issue_type in unique_issue_types %}
		{{- issue_type }}
		{%- if not loop.last %}
			{%- if loop.revindex > 2 %}, {% else %} and {% endif %}
		{%- endif %}
	{%- endfor %}
{%- endif %}.
{%- endmacro %}
{{- summary()|wordwrap(71) }}

Resolution
==========

Upgrade to {{ group.fixed }}.

# pacman -Syu "{{ package.pkgname }}>={{ group.fixed }}"

The problem{% if issues|length > 1 %}s have{% else %} has{% endif %} been fixed upstream
{%- if upstream_released %} in version {{ upstream_version }}
{%- else %} but no release is available yet
{%- endif %}.

Workaround
==========

{% if workaround %}
{%- set splitted = workaround.split('\n') %}
{%- for line in splitted %}
	{{- line|wordwrap(71) }}
	{%- if not loop.last %}
{% endif %}
{%- endfor %}
{%- else -%}
None.
{%- endif %}

Description
===========

{% for issue in issues %}
{%- if issues|length > 1 %}- {{issue.id}} ({{ issue.issue_type }})

{% endif %}
{%- set splitted = '' if not issue.description else issue.description.split('\n') %}
{%- for line in splitted %}
	{{- line|wordwrap(71) }}
	{%- if not loop.last %}
{% endif %}
{%- endfor %}
{%- if not loop.last %}

{% endif %}
{%- endfor %}

Impact
======

{% if impact %}{{ impact|wordwrap(71) }}{% endif %}

References
==========

{% for reference in references %}
{{- reference }}
{% endfor %}
{%- for issue in issues %}{{ TRACKER_ISSUE_URL.format(issue.id) }}
{% endfor %}
