Mailinglist Archive: zypp-devel (92 mails)

< Previous Next >
[zypp-devel] Deprecated Pattern::install_packages() ?
  • From: Katarina Machalkova <kmachalkova@xxxxxxx>
  • Date: Fri, 24 Aug 2007 10:44:15 +0200
  • Message-id: <200708241044.20684.kmachalkova@xxxxxxx>
Hola zypp hackers!

While building libzypp I've noticed that install_packages() method of Pattern 
class has become deprecated. So it is stated in related header file:

 /** \deprecated AFAIK unused old Selection interface method. */
    std::set<std::string> install_packages( const Locale & lang = Locale("") ) 
const ZYPP_DEPRECATED;

This is not exactly true, the method is called in zypp::ui::PatternContents, 
which in turn is used in all UIs to obtain names of the packages to be 
installed shown by UI to the user, once he/she selects particular pattern for 
installation.
(i.e. go to package selector, select 'Pattern' filter, choose some pattern 
e.g. YaST development and the packages you'll see in the right panel are 
obtained with the help of zypp::ui::PatternContents::install_packages() 
method)

Provided that this method is really deprecated, I'm probably supposed to use 
something else instead, to achieve the same goal in UI ;-)  Could you please 
point me to some other libzypp method I can possibly use, or advise me how to 
collect names of the packages that will be installed once user select a 
pattern?
Thanks in advance 

B.

P.S.: Cc-ing also HuHa and Michael, since all UIs are currently using this 
deprecated method
-- 
   \\\\\              Katarina Machalkova    
  \\\\\\\__o          YaST developer
__\\\\\\\'/_          & hedgehog painter
< Previous Next >
Follow Ups