summaryrefslogtreecommitdiff
path: root/src/enquiry.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2010-06-25 18:20:26 +0200
committerGuillem Jover <guillem@debian.org>2010-06-27 11:12:38 +0200
commit50391de87ac2b0269ef3e2f64fb41e913baff415 (patch)
tree335bd59dbf0f3d741b63e432439b0b07d39c12f2 /src/enquiry.c
parentacf7fe58c95c2ba4300ec4b60d614012483f4771 (diff)
downloaddpkg-50391de87ac2b0269ef3e2f64fb41e913baff415.tar.gz
libdpkg: Remove 'valid' member from struct pkginfoperfile
The two struct pkginfoperfile inside struct pkginfo are always valid, as blankpackage does a blankpackageperfile on each. So there's no actual need for the boolean member, neither for validity checks all over the place and possible subsequent redundant initializations. This is due to commit 5f100a01af636c14a600bf53b22e2ca3f2fcc546.
Diffstat (limited to 'src/enquiry.c')
-rw-r--r--src/enquiry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/enquiry.c b/src/enquiry.c
index b41b2be3d..af4542695 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -364,7 +364,6 @@ void predeppackage(const char *const *argv) {
!pkg && possi;
possi=possi->next) {
trypkg= possi->ed;
- if (!trypkg->available.valid) continue;
if (trypkg->files && versionsatisfied(&trypkg->available,possi)) {
if (trypkg->clientdata->istobe == itb_normal) { pkg= trypkg; break; }
}
@@ -374,7 +373,8 @@ void predeppackage(const char *const *argv) {
provider=provider->next) {
if (provider->up->type != dep_provides) continue;
trypkg= provider->up->up;
- if (!trypkg->available.valid || !trypkg->files) continue;
+ if (!trypkg->files)
+ continue;
if (trypkg->clientdata->istobe == itb_normal) { pkg= trypkg; break; }
}
}