aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-05 16:31:54 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-05 16:31:54 +0000
commit7f548be3b87d48cca59cf475da5575912bdd74eb (patch)
treee381139ed2e9fbefe7355bc4c7ed2bebb66674dc
parentf2f25559128cf4a93848b2a81904e522b33fb1de (diff)
downloadpaludis-7f548be3b87d48cca59cf475da5575912bdd74eb.tar.gz
paludis-7f548be3b87d48cca59cf475da5575912bdd74eb.tar.xz
New collections fix for inquisitio.
-rw-r--r--src/clients/inquisitio/do_search.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/clients/inquisitio/do_search.cc b/src/clients/inquisitio/do_search.cc
index 8de8e25..7d5d203 100644
--- a/src/clients/inquisitio/do_search.cc
+++ b/src/clients/inquisitio/do_search.cc
@@ -27,6 +27,8 @@
#include <paludis/query.hh>
#include <paludis/package_database.hh>
#include <paludis/util/iterator.hh>
+#include <paludis/util/set.hh>
+#include <paludis/util/sequence.hh>
#include <list>
#include <set>
#include <iostream>
@@ -72,8 +74,8 @@ do_search(const Environment & env)
r->format()))
continue;
- tr1::shared_ptr<const CategoryNamePartCollection> cat_names(r->category_names());
- for (CategoryNamePartCollection::Iterator c(cat_names->begin()), c_end(cat_names->end()) ;
+ tr1::shared_ptr<const CategoryNamePartSet> cat_names(r->category_names());
+ for (CategoryNamePartSet::Iterator c(cat_names->begin()), c_end(cat_names->end()) ;
c != c_end ; ++c)
{
if (CommandLine::get_instance()->a_category.specified())
@@ -83,8 +85,8 @@ do_search(const Environment & env)
stringify(*c)))
continue;
- tr1::shared_ptr<const QualifiedPackageNameCollection> pkg_names(r->package_names(*c));
- for (QualifiedPackageNameCollection::Iterator p(pkg_names->begin()), p_end(pkg_names->end()) ;
+ tr1::shared_ptr<const QualifiedPackageNameSet> pkg_names(r->package_names(*c));
+ for (QualifiedPackageNameSet::Iterator p(pkg_names->begin()), p_end(pkg_names->end()) ;
p != p_end ; ++p)
pkgs.insert(*p);
}