summaryrefslogtreecommitdiff
path: root/src/cmdline/cmdline_user_tag.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline/cmdline_user_tag.cc')
-rw-r--r--src/cmdline/cmdline_user_tag.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmdline/cmdline_user_tag.cc b/src/cmdline/cmdline_user_tag.cc
index e3cd7726..3cc29618 100644
--- a/src/cmdline/cmdline_user_tag.cc
+++ b/src/cmdline/cmdline_user_tag.cc
@@ -149,15 +149,16 @@ namespace aptitude
}
else
{
- std::vector<std::pair<pkgCache::PkgIterator, ref_ptr<structural_match> > > matches;
+ pkg_results_list matches;
ref_ptr<search_cache> search_info(search_cache::create());
search(p, search_info,
matches,
*apt_cache_file,
*apt_package_records);
- for(std::vector<std::pair<pkgCache::PkgIterator, ref_ptr<structural_match> > >::const_iterator
- it = matches.begin(); it != matches.end(); ++it)
+ for(pkg_results_list::const_iterator it = matches.begin();
+ it != matches.end();
+ ++it)
do_user_tag(action, tag, it->first, verbose);
}
}