diff options
author | Alex Legler <a3li@gentoo.org> | 2011-10-22 17:12:22 +0200 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2011-10-22 17:12:36 +0200 |
commit | 6db6bc5bebc95b7452e24f8e5a9c52eecbd6fc78 (patch) | |
tree | eefef45b2f4bd4bee64076a08114cbbb73c2c5b9 /app/views | |
parent | Remove exception notification tool again for debugging (diff) | |
download | glsamaker-6db6bc5bebc95b7452e24f8e5a9c52eecbd6fc78.tar.gz glsamaker-6db6bc5bebc95b7452e24f8e5a9c52eecbd6fc78.tar.bz2 glsamaker-6db6bc5bebc95b7452e24f8e5a9c52eecbd6fc78.zip |
Make XML builder core more robust to errors
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/glsa/_glsa.xml.builder | 2 |
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 |