diff options
| author | Scott Bahling <sbahling@suse.de> | 2016-03-03 02:19:13 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2016-03-03 02:19:13 +0100 |
| commit | 3ea5bd07c23838b1a96357089e8173a094dfaed1 (patch) | |
| tree | 0ee4b228a35a37c6d120e85cc2b7cc6ebacaa8fc /obsapi/templates/FileInfo.j2 | |
| parent | 224e2ce1d43045e567a1c782830a24432531aa8b (diff) | |
| download | obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.tar.gz obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.tar.xz obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.zip | |
Add formatter class and extend FileInfo class
Diffstat (limited to 'obsapi/templates/FileInfo.j2')
| -rw-r--r-- | obsapi/templates/FileInfo.j2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/obsapi/templates/FileInfo.j2 b/obsapi/templates/FileInfo.j2 new file mode 100644 index 0000000..af77bcc --- /dev/null +++ b/obsapi/templates/FileInfo.j2 @@ -0,0 +1,27 @@ +{{this.filename}} +{{'-' * this.filename|length}} +{%- if this.is_pkg %} +Name : {{this.name}} +Version : {{this.version}} +Release : {{this.release}} +Architecture: {{this.arch}} +Size : {{this.size}} +{%- if this.source %} +Source RPM : {{this.source}} +{%- endif %} +Build Date : {{this.datetime.strftime('%Y-%m-%dT%H:%M')}} +Summary : {{this.summary}} +Description : +{{this.description}} +Provides : +{%- for provides in this.provides %} + {{provides}} +{%- endfor %} +Requires : +{%- for requires in this.requires %} + {{requires}} +{%- endfor %} +{%- else %} +Size : {{this.size}} +Modified : {{this.mtime}} +{%- endif %} |
