On Monday, August 8, 2016 6:16:12 AM WEST Suresh K Hosamani wrote:
> Hi,

Hi Suresh,

> I was trying to add few debug statement using Report.Error statement in
> proposal_store.rb, it fails with below error
> 
>  yast/wfm.rb:222 Client call failed with 'uninitialized constant
> Installation::ProposalStore::YaST' and backtrace
> ["/usr/share/YaST2/lib/installation/proposal_store.rb:46:in `initialize'",
> "/usr/share/YaST2/lib/installation/proposal_runner.rb:84:in `new'",
> "/usr/share/YaST2/lib/installation/proposal_runner.rb:84:in `run'",
> "/usr/share/YaST2/lib/installation/proposal_runner.rb:38:in `run'",
> "/usr/share/YaST2/clients/inst_proposal.rb:24:in `<top (required)>'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:209:in `eval'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:209:in `run_client'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:185:in `call_builtin'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:185:in
> `call_builtin_wrapper'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:178:in `CallFunction'",
> "/usr/share/YaST2/modules/ProductControl.rb:1360:in `RunFrom'",
> "/usr/share/YaST2/modules/ProductControl.rb:1547:in `Run'",
> "/usr/share/YaST2/modules/OesAddOnProduct.rb:1144:in
> `DoInstall_WithControlFile'",
> "/usr/share/YaST2/modules/OesAddOnProduct.rb:1346:in `DoInstall'",
> "/usr/share/YaST2/clients/oes-install.rb:48:in `main'",
> "/usr/share/YaST2/clients/oes-install.rb:83:in `<top (required)>'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:209:in `eval'",
> "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:209:in `run_client'"] code
> is
> 
>     def initialize(proposal_mode)
>         Yast.import "Mode"
>         Yast.import "ProductControl"
>         Yast.import "Stage"
>         Yast.import "Report"
>         textdomain "installation"
> 
>         @proposal_mode = proposal_mode
>         YaST::Report.Error("yes")

You should change YaST::Report for Yast::Report.

>     end
> Any thing missing ?

I hope it helps.

Regards,
Imo


-- 
Imobach González Sosa
YaST team at SUSE LINUX GmbH

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to