aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/glsa/_glsa.xml.builder')
-rw-r--r--app/views/glsa/_glsa.xml.builder2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/glsa/_glsa.xml.builder b/app/views/glsa/_glsa.xml.builder
index 588952a..d268c39 100644
--- a/app/views/glsa/_glsa.xml.builder
+++ b/app/views/glsa/_glsa.xml.builder
@@ -19,7 +19,7 @@ xml.glsa :id => glsa.glsa_id do
xml.affected do
rev.packages_by_atom.each_pair do |package, atoms|
xml.package({:name => package, :auto => (atoms['unaffected'] || []).select {|a| !a.automatic}.length == 0 ? 'yes' : 'no',
- :arch => atoms['vulnerable'].first.arch}) do
+ :arch => (atoms['vulnerable'].nil? || atoms['vulnerable'].length == 0) ? '*' : atoms['vulnerable'].first.arch}) do
(atoms['unaffected'] || []).each do |a|
xml.unaffected({:range => a.xml_comp}, a.version)
end