Hello community,

here is the log from the commit of package webyast-firewall-ws for 
openSUSE:Factory
checked in at Wed May 4 11:39:22 CEST 2011.



--------
--- webyast-firewall-ws/webyast-firewall-ws.changes     2011-02-08 
17:42:55.000000000 +0100
+++ 
/mounts/work_src_done/STABLE/webyast-firewall-ws/webyast-firewall-ws.changes    
    2011-05-02 14:21:51.000000000 +0200
@@ -1,0 +2,18 @@
+Mon May  2 12:21:31 UTC 2011 - sch...@novell.com
+
+- adapt caching to the new job handling 
+- 0.2.13
+
+-------------------------------------------------------------------
+Tue Apr 12 13:11:51 UTC 2011 - sch...@novell.com
+
+- new caching
+- 0.2.12 
+
+-------------------------------------------------------------------
+Fri Feb 25 10:27:38 UTC 2011 - vgorob...@novell.com
+
+- Fixed bug: WebYaST firewall module crashes if firewall service description 
is missing 
+- 0.2.11
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ webyast-firewall-ws.spec ++++++
--- /var/tmp/diff_new_pack.ZF056L/_old  2011-05-04 11:39:08.000000000 +0200
+++ /var/tmp/diff_new_pack.ZF056L/_new  2011-05-04 11:39:08.000000000 +0200
@@ -23,7 +23,7 @@
 Group:          Productivity/Networking/Web/Utilities
 Url:            http://en.opensuse.org/Portal:WebYaST
 AutoReqProv:    on
-Version:        0.2.10
+Version:        0.2.13
 Release:        1
 Summary:        WebYaST - Firewall management service
 Source:         www.tar.bz2


++++++ www.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/www/app/models/firewall.rb 
new/www/app/models/firewall.rb
--- old/www/app/models/firewall.rb      2011-02-01 10:49:11.000000000 +0100
+++ new/www/app/models/firewall.rb      2011-04-29 18:23:25.000000000 +0200
@@ -24,7 +24,9 @@
   attr_accessor :use_firewall, :fw_services
 
   def self.find
-    Firewall.new YastService.Call("YaPI::FIREWALL::Read")
+    YastCache.fetch(self) {
+      Firewall.new YastService.Call("YaPI::FIREWALL::Read")
+    }
   end
 
   def save
@@ -36,6 +38,7 @@
     #  Rails.logger.info "firewall configuration saving error: #{e.inspect}"
     #  
     #end
+    YastCache.reset(self)
     raise FirewallException.new(result["error"]) unless result["saved_ok"]
   end
 
@@ -54,8 +57,10 @@
       ["a{sv}", value.to_a.collect {|kv| [ (kv[0].to_s), toVariant(kv[1])] } ]
     elsif value.is_a? Array
       ["av", value.collect {|v| toVariant v}]
+    elsif value.nil?
+      Rails.logger.error "WARNING: Firewall service description is missing"
     else
-      raise "Unknown variant type!"
+      raise "Unknown variant type! #{value}"
     end
   end
 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to