ref: refs/heads/network
commit 32be3734b62d83a68169620cf8ebaa8b5f4908e8
Author: Stefan Schubert
Date: Mon Sep 7 13:05:09 2009 +0200
more readable
---
.../app/controllers/patch_updates_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/patch_updates/app/controllers/patch_updates_controller.rb b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
index 4747342..10daa3e 100644
--- a/plugins/patch_updates/app/controllers/patch_updates_controller.rb
+++ b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
@@ -29,7 +29,7 @@ class PatchUpdatesController < ApplicationController
patches_summary = { :security => 0, :important => 0, :optional => 0}
[:security, :important, :optional].each do |patch_type|
- patches_summary[patch_type] = patch_updates.collect { |p| p.kind == patch_type.to_s ? p : nil }.nitems
+ patches_summary[patch_type] = patch_updates.find_all { |p| p.kind == patch_type.to_s }.size
end
else
erase_redirect_results #reset all redirects
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org