commit webyast-mail-ws for openSUSE:Factory
Hello community, here is the log from the commit of package webyast-mail-ws for openSUSE:Factory checked in at Wed May 4 11:06:53 CEST 2011. -------- --- webyast-mail-ws/webyast-mail-ws.changes 2011-03-09 13:11:58.000000000 +0100 +++ /mounts/work_src_done/STABLE/webyast-mail-ws/webyast-mail-ws.changes 2011-05-03 11:00:05.000000000 +0200 @@ -1,0 +2,18 @@ +Tue May 3 08:59:17 UTC 2011 - schubi@novell.com + +- adapted deleting cache key +- 0.2.6 + +------------------------------------------------------------------- +Mon May 2 12:31:05 UTC 2011 - schubi@novell.com + +- adapt caching to the new job handling +- 0.2.5 + +------------------------------------------------------------------- +Tue Apr 12 13:16:29 UTC 2011 - schubi@novell.com + +- new caching +- 0.2.4 + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ webyast-mail-ws.spec ++++++ --- /var/tmp/diff_new_pack.z9gW5v/_old 2011-05-04 11:06:38.000000000 +0200 +++ /var/tmp/diff_new_pack.z9gW5v/_new 2011-05-04 11:06:38.000000000 +0200 @@ -26,7 +26,7 @@ Group: Productivity/Networking/Web/Utilities Url: http://en.opensuse.org/Portal:WebYaST AutoReqProv: on -Version: 0.2.3 +Version: 0.2.6 Release: 1 Summary: WebYaST - system mail settings service Source: www.tar.bz2 ++++++ www.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/controllers/mail/state_controller.rb new/www/app/controllers/mail/state_controller.rb --- old/www/app/controllers/mail/state_controller.rb 2011-03-08 11:47:08.000000000 +0100 +++ new/www/app/controllers/mail/state_controller.rb 2011-05-02 16:35:51.000000000 +0200 @@ -33,7 +33,7 @@ logger.warn "Confirmation of testmail" File.delete Mail::TEST_MAIL_FILE if File.exist? Mail::TEST_MAIL_FILE - + YastCache.delete(Plugin.new(),"mail") mail = Mail.find respond_to do |format| format.xml { render :xml => mail.to_xml(:root => "mail", :dasherize => false, :indent=>2), :location => "none" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/mail.rb new/www/app/models/mail.rb --- old/www/app/models/mail.rb 2011-03-09 12:50:15.000000000 +0100 +++ new/www/app/models/mail.rb 2011-04-29 18:23:25.000000000 +0200 @@ -37,10 +37,12 @@ # read the settings from system def self.find - yapi_ret = YastService.Call("YaPI::MailSettings::Read") - raise MailError.new("Cannot read from YaPI backend") if yapi_ret.nil? - yapi_ret["transport_layer_security"] = yapi_ret.delete("TLS") || "no" - Mail.new yapi_ret + YastCache.fetch(self) { + yapi_ret = YastService.Call("YaPI::MailSettings::Read") + raise MailError.new("Cannot read from YaPI backend") if yapi_ret.nil? + yapi_ret["transport_layer_security"] = yapi_ret.delete("TLS") || "no" + Mail.new yapi_ret + } end @@ -56,6 +58,7 @@ yapi_ret = YastService.Call("YaPI::MailSettings::Write", parameters) Rails.logger.debug "YaPI returns: '#{yapi_ret}'" + YastCache.reset(self) raise MailError.new(yapi_ret) unless yapi_ret.empty? true end @@ -69,7 +72,6 @@ # remove potential problematic characters from email address to.tr!("~'\"<>","") - `/bin/echo "#{message}" | /bin/mail -s "WebYaST Test Mail" '#{to}' -r root` unless File.directory? File.join(Paths::VAR,"mail") ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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