commit webyast-root-user-ws for openSUSE:Factory
Hello community, here is the log from the commit of package webyast-root-user-ws for openSUSE:Factory checked in at Tue May 17 12:24:21 CEST 2011. -------- --- webyast-root-user-ws/webyast-root-user-ws.changes 2011-02-08 17:35:24.000000000 +0100 +++ webyast-root-user-ws/webyast-root-user-ws.changes 2011-05-02 14:19:18.000000000 +0200 @@ -1,0 +2,12 @@ +Mon May 2 12:18:59 UTC 2011 - schubi@novell.com + +- adapt caching to the new job handling +- 0.2.3 + +------------------------------------------------------------------- +Tue Apr 12 10:39:38 UTC 2011 - schubi@novell.com + +- new caching +- 0.2.2 + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ webyast-root-user-ws.spec ++++++ --- /var/tmp/diff_new_pack.g62xki/_old 2011-05-16 18:25:49.000000000 +0200 +++ /var/tmp/diff_new_pack.g62xki/_new 2011-05-16 18:25:49.000000000 +0200 @@ -22,11 +22,11 @@ Provides: yast2-webservice-administrator = %{version} Obsoletes: yast2-webservice-administrator < %{version} PreReq: yast2-webservice -License: GPLv2 +License: GPL v2 only Group: Productivity/Networking/Web/Utilities Url: http://en.opensuse.org/Portal:WebYaST AutoReqProv: on -Version: 0.2.1 +Version: 0.2.3 Release: 1 Summary: WebYaST - service for configuration of root account Source: www.tar.bz2 @@ -53,7 +53,7 @@ # %package testsuite -License: GPLv2 + Group: Productivity/Networking/Web/Utilities Requires: %{name} = %{version} Requires: webyast-base-ws-testsuite ++++++ www.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/administrator.rb new/www/app/models/administrator.rb --- old/www/app/models/administrator.rb 2011-02-01 10:49:11.000000000 +0100 +++ new/www/app/models/administrator.rb 2011-04-29 18:23:25.000000000 +0200 @@ -37,13 +37,15 @@ # Read mail aliases for root. # return value:: comma-separated string def self.find - yapi_ret = YastService.Call("YaPI::ADMINISTRATOR::Read") - if yapi_ret.nil? - raise "Can't read administrator data" - elsif yapi_ret.has_key?("aliases") - yapi_ret["aliases"] = yapi_ret["aliases"].join(",") - end - Administrator.new yapi_ret + YastCache.fetch(self) { + yapi_ret = YastService.Call("YaPI::ADMINISTRATOR::Read") + if yapi_ret.nil? + raise "Can't read administrator data" + elsif yapi_ret.has_key?("aliases") + yapi_ret["aliases"] = yapi_ret["aliases"].join(",") + end + Administrator.new yapi_ret + } end # Changes the list of administrator's mail aliases. @@ -57,6 +59,7 @@ yapi_ret = YastService.Call("YaPI::ADMINISTRATOR::Write", parameters) Rails.logger.debug "YaPI returns: '#{yapi_ret}'" + YastCache.reset(self) raise AdministratorError.new(yapi_ret) unless yapi_ret.empty? end end ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de