Dne 21.6.2011 16:21, Jiri Suchomel napsal(a): > Would it make sense to revive this? Or to even enable real mocking of Pkg? > Or is it waste of the effort, which we should rather invest into the new > YaST++ project?
I'd rather invest the effort into YaST++, making Pkg bindings mockable won't help us in YaST++ anyway. As a workaround for now you can replace e.g. boolean installed = Pkg::IsInstalled("foo"); by this boolean installed = Mode::testMode() ? true : Pkg::IsInstalled("foo"); or wrap the Pkg:: call in a local function. It's not a nice solution but should be sufficient in the current state... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lsle...@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscr...@opensuse.org For additional commands, e-mail: yast-devel+h...@opensuse.org