Author: mlandres Date: Wed May 27 14:52:47 2009 New Revision: 57336 URL: http://svn.opensuse.org/viewcvs/yast?rev=57336&view=rev Log: Remove use of deprecated Package::filenames. Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Package.cc Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=57336&r1=57335&r2=57336&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Wed May 27 14:52:47 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed May 27 14:49:23 CEST 2009 - ma@suse.de + +- Remove use of deprecated Package::filenames. + +------------------------------------------------------------------- Wed Apr 29 08:45:52 CEST 2009 - lslezak@suse.cz - report also the URL when repository metadata are not found Modified: trunk/pkg-bindings/src/Package.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Package.cc?rev=57336&r1=57335&r2=57336&view=diff ============================================================================== --- trunk/pkg-bindings/src/Package.cc (original) +++ trunk/pkg-bindings/src/Package.cc Wed May 27 14:52:47 2009 @@ -961,8 +961,8 @@ { // access to the Pool of Selectables zypp::ResPoolProxy selectablePool(zypp::ResPool::instance().proxy()); - - for_(it, selectablePool.byKindBeginzypp::Package(), + + for_(it, selectablePool.byKindBeginzypp::Package(), selectablePool.byKindEndzypp::Package()) { zypp::ui::Selectable::Ptr s = (*it); @@ -1058,10 +1058,10 @@ return ret; } - std::liststd::string files = package->filenames(); + zypp::Package::FileList files( package->filelist() ); // insert the file names - for (std::list<string>::iterator it = files.begin(); it != files.end(); ++it) + for_( it, files.begin(), files.end() ) { ret->add(YCPString(*it)); } @@ -1266,8 +1266,8 @@ { // access to the Pool of Selectables zypp::ResPoolProxy selectablePool(zypp::ResPool::instance().proxy()); - - for_(it, selectablePool.byKindBeginzypp::Package(), + + for_(it, selectablePool.byKindBeginzypp::Package(), selectablePool.byKindEndzypp::Package()) { zypp::ui::Selectable::Ptr s = (*it); @@ -1378,8 +1378,8 @@ { // access to the Pool of Selectables zypp::ResPoolProxy selectablePool(zypp::ResPool::instance().proxy()); - - for_(it, selectablePool.byKindBeginzypp::Package(), + + for_(it, selectablePool.byKindBeginzypp::Package(), selectablePool.byKindEndzypp::Package()) { zypp::ui::Selectable::Ptr s = (*it); @@ -1435,8 +1435,8 @@ { // access to the Pool of Selectables zypp::ResPoolProxy selectablePool(zypp::ResPool::instance().proxy()); - - for_(it, selectablePool.byKindBeginzypp::Package(), + + for_(it, selectablePool.byKindBeginzypp::Package(), selectablePool.byKindEndzypp::Package()) { zypp::ui::Selectable::Ptr s = (*it); @@ -1509,49 +1509,49 @@ * @description * Mark all packages for installation which are installed and have * an available candidate for update. - * + * * This will mark packages for installation *and* for deletion (if a * package provides/obsoletes another package) - * + * * This function does not solve dependencies. - * + * * Symbols and integer values returned: - * + * * <b>ProblemListSze</b>: Number of taboo and dropped packages found. - * + * * <b>DeleteUnmaintained</b>: Whether delete_unmaintained arg was true or false. * Dependent on this, <b>SumDropped</b> below either denotes packages to delete * (if true) or packages to keep (if false). - * + * * <b>SumProcessed</b>: TOTAL number of installed packages we processed. - * + * * <b>SumToInstall</b>: TOTAL number of packages now tagged as to install. * Summs <b>Ipreselected</b>, <b>Iupdate</b>, <b>Idowngrade</b>, <b>Ireplaced</b>. - * + * * <b>Ipreselected</b>: Packages which were already taged to install. - * + * * <b>Iupdate</b>: Packages set to install as update to a newer version. - * + * * <b>Idowngrade</b>: Packages set to install performing a version downgrade. - * + * * <b>Ireplaced</b>: Packages set to install as they replace an installed package. - * + * * <b>SumToDelete</b>: TOTAL number of packages now tagged as to delete. * Summs <b>Dpreselected</b>, <b>SumDropped</b> if <b>DeleteUnmaintained</b> * was set. - * + * * <b>Dpreselected</b>: Packages which were already taged to delete. - * + * * <b>SumToKeep</b>: TOTAL number of packages which remain unchanged. * Summs <b>Ktaboo</b>, <b>Knewer</b>, <b>Ksame</b>, <b>SumDropped</b> * if <b>DeleteUnmaintained</b> was not set. - * + * * <b>Ktaboo</b>: Packages which are set taboo. - * + * * <b>Knewer</b>: Packages kept because only older versions are available. - * + * * <b>Ksame</b>: Packages kept because they are up to date. - * + * * <b>SumDropped</b>: TOTAL number of dropped packages found. Dependent * on the delete_unmaintained arg, they are either tagged as to delete or * remain unchanged. @@ -2419,7 +2419,7 @@ // get the package zypp::sat::Solvable refsolvable = base_product->referencePackage(); - + if (refsolvable != zypp::sat::Solvable::noSolvable) { // create a package pointer from the SAT solvable @@ -2470,7 +2470,7 @@ base_link.asString().c_str(), ::strerror(errno) ); - + return false; } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org