summaryrefslogtreecommitdiff
path: root/obsapi/templates/FileInfo.j2
diff options
context:
space:
mode:
Diffstat (limited to 'obsapi/templates/FileInfo.j2')
-rw-r--r--obsapi/templates/FileInfo.j227
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 %}