aboutsummaryrefslogtreecommitdiff
path: root/paludis/generator_handler.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 22:08:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-28 15:31:18 +0000
commitbf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f (patch)
treefe00ac0ca9434b268499b6380220140fc5e1a816 /paludis/generator_handler.cc
parent761f72d25876dac3e239fad163123d35cacda4a0 (diff)
downloadpaludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.gz
paludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.xz
Allow repos to return partial results if faster
Diffstat (limited to 'paludis/generator_handler.cc')
-rw-r--r--paludis/generator_handler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/generator_handler.cc b/paludis/generator_handler.cc
index aeb5fd9..73320ed 100644
--- a/paludis/generator_handler.cc
+++ b/paludis/generator_handler.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -55,7 +55,7 @@ AllGeneratorHandlerBase::categories(
for (RepositoryNameSet::ConstIterator r(repos->begin()), r_end(repos->end()) ;
r != r_end ; ++r)
{
- std::shared_ptr<const CategoryNamePartSet> cats(env->package_database()->fetch_repository(*r)->category_names());
+ std::shared_ptr<const CategoryNamePartSet> cats(env->package_database()->fetch_repository(*r)->category_names({ }));
std::copy(cats->begin(), cats->end(), result->inserter());
}
@@ -77,7 +77,7 @@ AllGeneratorHandlerBase::packages(
c != c_end ; ++c)
{
std::shared_ptr<const QualifiedPackageNameSet> pkgs(
- env->package_database()->fetch_repository(*r)->package_names(*c));
+ env->package_database()->fetch_repository(*r)->package_names(*c, { }));
std::copy(pkgs->begin(), pkgs->end(), result->inserter());
}
}
@@ -100,7 +100,7 @@ AllGeneratorHandlerBase::ids(
q != q_end ; ++q)
{
std::shared_ptr<const PackageIDSequence> i(
- env->package_database()->fetch_repository(*r)->package_ids(*q));
+ env->package_database()->fetch_repository(*r)->package_ids(*q, { }));
std::copy(i->begin(), i->end(), result->inserter());
}
}