blob: 4932f74c880ee2df96c7f987471a0ebf25e6310f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
{% extends "package_detail_base.html" %}
{% load projecttags %}
{% block tabcontent %}
{% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
<ul class="nav nav-pills">
<li class="">
<a href="{% url 'package_built_detail' build.id package.id %}">
<i class="icon-question-sign get-help" data-toggle="tooltip" title="Shows the files produced by this package."></i>
Generated files ({{package.buildfilelist_package.count}})
</a>
</li>
<li class="active">
<a href="{% url 'package_built_dependencies' build.id package.id %}">
<i class="icon-question-sign get-help" data-toggle="tooltip" title="Shows the runtime packages required by this package."></i>
Runtime dependencies ({{dependency_count}})
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="dependencies">
{% ifequal runtime_deps|length 0 %}
<div class="alert alert-info">
<strong>{{fullPackageSpec}}</strong> has no runtime dependencies.
</div>
{% else %}
<div class="alert alert-info">
<strong>{{fullPackageSpec}}</strong> is <strong>not included</strong> in any image. These are its projected runtime dependencies if you were to include it in future builds.
</div>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Package</th>
<th>Version</th>
<th>Size</th>
</tr>
</thead>
<tbody>
{% for runtime_dep in runtime_deps %}
{% ifequal runtime_dep.version '' %}
<tr class="muted">
<td>{{runtime_dep.name}}</td>
<td>{{runtime_dep.version}}</td>
<td></td>
</div>
</tr>
{% else %}
<tr>
<td>
<a href="{% url 'package_built_detail' build.id runtime_dep.depends_on_id %}">
{{runtime_dep.name}}
</a>
</td>
<td>{{runtime_dep.version}}</td>
<td>{{runtime_dep.size|filtered_filesizeformat}}</td>
</tr>
{% endifequal %}
{% endfor %}
</tbody>
</table>
{% endifequal %}
{% ifnotequal other_deps|length 0 %}
<h3>Other runtime relationships</h3>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Package</th>
<th>Version</th>
<th>Size</th>
<th>
<i class="icon-question-sign get-help" title="There are 5 relationship types: recommends, suggests, provides, replaces and conflicts"></i>
Relationship type
</th>
</tr>
</thead>
<tbody>
{% for other_dep in other_deps %}
{% ifequal other_dep.version '' %}
<tr class="muted">
<td>{{other_dep.name}}</td>
<td>{{other_dep.version}}</td>
<td></td>
<td>
{{other_dep.dep_type_display}}
<i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i>
</td>
</tr>
{% else %}
<tr>
<td>
<a href="{% url 'package_built_detail' build.id other_dep.depends_on_id %}">
{{other_dep.name}}
</a>
</td>
<td>{{other_dep.version}}</td>
<td>{{other_dep.size|filtered_filesizeformat}}</td>
<td>
{{other_dep.dep_type_display}}
<i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i>
</td>
</tr>
{% endifequal %}
{% endfor %}
</tbody>
</table>
{% endifnotequal %}
</div> <!-- tab-pane -->
</div> <!-- tab-content -->
{% endwith %}
{% endblock tabcontent %}
|