{%- extends "sources/_macros.html" %} {%- macro match_d_license(comment) -%} {%- if '/usr/share/common-licenses/' in comment %} {%- for word in comment.split() %} {%- if '/usr/share/common-licenses/' in word %} {%- set url = url_for('sources.source', path_to='base-files/latest/licenses/'+ word.split('/usr/share/common-licenses/')[1])%} {%- set comment = comment|replace(word, "" + word + "" ) %} {{comment|safe}} {%- endif %} {%- endfor %} {%- else %} {{ comment }} {%- endif %} {%- endmacro %} {%- macro view_license(c) -%} {%- if c['license'] is not none %}
According to the d/copyright file, {{c['path']}} in the package {{c['package']}}, version {{c['version']}} is licensed under {{c['license']}}
{%- else %}The d/copyright file for the file {{c['path']}} in the package {{c['package']}}, version {{c['version']}} is not machine readable
{%- endif %} {%- endmacro %}