Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <web-client> basesystem : more readable
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Mon, 7 Sep 2009 13:05:09 +0200
  • Message-id: <E1Mlexq-0003wl-LA@xxxxxxxxxxxxxxxx>
ref: refs/heads/basesystem
commit 32be3734b62d83a68169620cf8ebaa8b5f4908e8
Author: Stefan Schubert <schubi@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages