ref: refs/heads/backgroud_patches_bnc550934
commit 51e5d1fd31bb6916172a53b9f6cf2980054951c4
Author: Martin Vidner
Date: Thu Nov 19 10:21:56 2009 +0100
Fixed basesystem looping at first step (bnc#556818), really.
Cannot use has_key? as it is too low level:
The real session uses symbols and the test session uses strings.
Now also the tests pass. Interestingly enough, basesystem is tested
in registration.
---
webclient/lib/basesystem.rb | 4 ++--
webclient/package/yast2-webclient.changes | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/webclient/lib/basesystem.rb b/webclient/lib/basesystem.rb
index f12b61d..686ef19 100644
--- a/webclient/lib/basesystem.rb
+++ b/webclient/lib/basesystem.rb
@@ -6,11 +6,11 @@ module Basesystem
end
def Basesystem.in_process?(session)
- session.has_key?(:wizard_steps) && !done?(session)
+ !session[:wizard_steps].nil? && !done?(session)
end
def Basesystem.initialized?(session)
- session.has_key?(:wizard_current)
+ !session[:wizard_current].nil?
end
def Basesystem.set_finish(session)
diff --git a/webclient/package/yast2-webclient.changes b/webclient/package/yast2-webclient.changes
index a34e09e..62765b7 100644
--- a/webclient/package/yast2-webclient.changes
+++ b/webclient/package/yast2-webclient.changes
@@ -1,5 +1,5 @@
-------------------------------------------------------------------
-Thu Nov 19 09:44:09 CET 2009 - mvidner@suse.cz
+Thu Nov 19 10:19:09 CET 2009 - mvidner@suse.cz
- Fixed basesystem looping at first step (bnc#556818).
- 0.0.15
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org