[yast-commit] r47987 - /trunk/ncurses-pkg/src/NCPkgFilterRepo.cc

Author: kmachalkova Date: Mon Jun 2 14:11:48 2008 New Revision: 47987 URL: http://svn.opensuse.org/viewcvs/yast?rev=47987&view=rev Log: bloated code -- Modified: trunk/ncurses-pkg/src/NCPkgFilterRepo.cc Modified: trunk/ncurses-pkg/src/NCPkgFilterRepo.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPkgFilterRepo.c... ============================================================================== --- trunk/ncurses-pkg/src/NCPkgFilterRepo.cc (original) +++ trunk/ncurses-pkg/src/NCPkgFilterRepo.cc Mon Jun 2 14:11:48 2008 @@ -219,50 +219,9 @@ //clean the pkg table first pkgList->itemsCleared (); - //sets to store matching packages - /* set <ZyppSel> exactMatch; - set <ZyppSel> nearMatch; - - //iterate through the package pool - for ( ZyppPoolIterator it = zyppPkgBegin(); - it != zyppPkgEnd(); - ++it ) - { - //we have candidate object in this repository - if ( (*it)->candidateObj() && - (*it)->candidateObj()->repository() == repo ) - { - exactMatch.insert( *it ); - } - //something else (?) - else - { - zypp::ui::Selectable::available_iterator pkg_it = (*it)->availableBegin(); - - while ( pkg_it != (*it)->availableEnd() ) - { - if ( (*pkg_it)->repository() == repo ) - nearMatch.insert( *it ); - - ++pkg_it; - } - } - - } - - //finally create pkg table list entries - set<ZyppSel>::const_iterator e_it = exactMatch.begin(); - while ( e_it != exactMatch.end() ) - { - ZyppPkg pkg = tryCastToZyppPkg( (*e_it)->theObj() ); - pkgList->createListEntry ( pkg, *e_it); - e_it++; - }*/ - zypp::PoolQuery q; q.addRepo( repo.info().alias() ); - for( zypp::PoolQuery::Selectable_iterator it = q.selectableBegin(); it != q.selectableEnd(); it++) { @@ -270,14 +229,6 @@ pkgList->createListEntry ( pkg, *it); } - /*set<ZyppSel>::const_iterator n_it = nearMatch.begin(); - while ( n_it != nearMatch.end() ) - { - pkgList->createListEntry ( pkg, *n_it); - n_it++; - } - - //and show the whol stuff to the user*/ pkgList->drawList(); return true; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org