ref: refs/heads/use-activeresource
commit a189d4e8b52494c6a546fbc3ee387f8662981d0e
Author: Stefan Schubert
Date: Mon Sep 14 16:22:58 2009 +0200
activated patch installation
---
.../app/controllers/patch_updates_controller.rb | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/plugins/patch_updates/app/controllers/patch_updates_controller.rb b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
index b92c685..612695f 100644
--- a/plugins/patch_updates/app/controllers/patch_updates_controller.rb
+++ b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
@@ -88,9 +88,13 @@ class PatchUpdatesController < ApplicationController
last_patch = ""
if patch_updates
#installing the first available patch
- ret = true
- #ret = patch_updates[0].save #install patch
logger.info "Installing patch :#{patch_updates[0].name}"
+ begin
+ patch_updates[0].save
+ logger.debug "updated #{patch_updates[0].name}"
+ rescue ActiveResource::ClientError => e
+ error = e
+ end
last_patch = patch_updates[0].name
else
erase_redirect_results #reset all redirects
@@ -128,7 +132,6 @@ class PatchUpdatesController < ApplicationController
flash[:notice] = _("Patch has been installed.")
rescue ActiveResource::ClientError => e
flash[:error] = YaST::ServiceResource.error(e)
- ExceptionLogger.log_exception e
end
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org