Verified Commit e34e019b authored by David Runge's avatar David Runge
Browse files

Add jinja2 templates for desc and files files

repo_management/templates/{desc,files}.j2:
Add jinja2 templates for the 'desc' and 'files' files in a repository
database (standard sync db or files sync db).
parent cf332096
%FILENAME%
{{ filename }}
%NAME%
{{ name }}
%BASE%
{{ base }}
%VERSION%
{{ version }}
%DESC%
{{ desc }}
{% if groups %}
%GROUPS%
{% for group in groups %}
{{ group }}
{% endfor %}
{% endif %}
%CSIZE%
{{ csize }}
%ISIZE%
{{ isize }}
%MD5SUM%
{{ md5sum }}
%SHA256SUM%
{{ sha256sum }}
%PGPSIG%
{{ pgpsig }}
%URL%
{{ url }}
{% if license %}
%LICENSE%
{% for license_ in license %}
{{ license_ }}
{% endfor %}
{% endif %}
%ARCH%
{{ arch }}
%BUILDDATE%
{{ builddate }}
%PACKAGER%
{{ packager }}
{% if replaces %}
%REPLACES%
{% for replace in replaces %}
{{ replace }}
{% endfor %}
{% endif %}
{% if conflicts %}
%CONFLICTS%
{% for conflict in conflicts %}
{{ conflict }}
{% endfor %}
{% endif %}
{% if provides %}
%PROVIDES%
{% for provide in provides %}
{{ provide }}
{% endfor %}
{% endif %}
{% if depends %}
%DEPENDS%
{% for depend in depends %}
{{ depend }}
{% endfor %}
{% endif %}
{% if optdepends %}
%OPTDEPENDS%
{% for optdepend in optdepends %}
{{ optdepend }}
{% endfor %}
{% endif %}
{% if makedepends %}
%MAKEDEPENDS%
{% for makedepend in makedepends %}
{{ makedepend }}
{% endfor %}
{% endif %}
{% if checkdepends %}
%CHECKDEPENDS%
{% for checkdepend in checkdepends %}
{{ checkdepend }}
{% endfor %}
{% endif %}
%FILES%
{% if files %}
{% for file in files %}
{{ file }}
{% endfor %}
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment