summaryrefslogtreecommitdiff
path: root/src/enquiry.c
diff options
context:
space:
mode:
authorRaphaƫl Hertzog <hertzog@debian.org>2011-01-28 17:19:37 +0100
committerGuillem Jover <guillem@debian.org>2011-11-14 06:56:15 +0100
commit5ec7516601fd68355ea162131a44c8bda315ad7b (patch)
treef70485b2ff7a09f623e021b83fd75122210aec0c /src/enquiry.c
parent729dcbd9a359a29aca74e6b5e895c9b2960da725 (diff)
downloaddpkg-5ec7516601fd68355ea162131a44c8bda315ad7b.tar.gz
Replace all pkg_db_iter_next() calls with pkg_db_iter_next_pkg()
Sponsored-by: Linaro Limited Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'src/enquiry.c')
-rw-r--r--src/enquiry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/enquiry.c b/src/enquiry.c
index 56de64da2..9f2bcc81a 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -145,7 +145,7 @@ audit(const char *const *argv)
bool head = false;
it = pkg_db_iter_new();
- while ((pkg = pkg_db_iter_next(it))) {
+ while ((pkg = pkg_db_iter_next_pkg(it))) {
if (!bsi->yesno(pkg,bsi)) continue;
if (!head_running) {
if (modstatdb_is_locked())
@@ -217,7 +217,7 @@ unpackchk(const char *const *argv)
sectionentries = NULL;
sects= 0;
it = pkg_db_iter_new();
- while ((pkg = pkg_db_iter_next(it))) {
+ while ((pkg = pkg_db_iter_next_pkg(it))) {
if (!yettobeunpacked(pkg, &thissect)) continue;
for (se= sectionentries; se && strcasecmp(thissect,se->name); se= se->next);
if (!se) {
@@ -240,7 +240,7 @@ unpackchk(const char *const *argv)
if (totalcount <= 12) {
it = pkg_db_iter_new();
- while ((pkg = pkg_db_iter_next(it))) {
+ while ((pkg = pkg_db_iter_next_pkg(it))) {
if (!yettobeunpacked(pkg, NULL))
continue;
describebriefly(pkg);
@@ -253,7 +253,7 @@ unpackchk(const char *const *argv)
width= 70-strlen(se->name)-strlen(buf);
while (width > 59) { putchar(' '); width--; }
it = pkg_db_iter_new();
- while ((pkg = pkg_db_iter_next(it))) {
+ while ((pkg = pkg_db_iter_next_pkg(it))) {
if (!yettobeunpacked(pkg,&thissect)) continue;
if (strcasecmp(thissect,se->name)) continue;
width -= strlen(pkg->set->name);
@@ -380,7 +380,7 @@ predeppackage(const char *const *argv)
dep = NULL;
it = pkg_db_iter_new();
- while (!dep && (pkg = pkg_db_iter_next(it))) {
+ while (!dep && (pkg = pkg_db_iter_next_pkg(it))) {
/* Ignore packages user doesn't want. */
if (pkg->want != want_install)
continue;