Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <web-client> network : evaluate the correct amount of patches
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Mon, 7 Sep 2009 12:25:31 +0200
  • Message-id: <E1MkdO1-0006q4-BB@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit d77d05ae1e9d37f472ba7adbb105511f6a7f9d63
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Mon Sep 7 12:25:31 2009 +0200

evaluate the correct amount of patches
---
.../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 ce42430..4747342 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 }.size
+ patches_summary[patch_type] = patch_updates.collect { |p| p.kind ==
patch_type.to_s ? p : nil }.nitems
end
else
erase_redirect_results #reset all redirects
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages