summaryrefslogtreecommitdiff
path: root/src/enquiry.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-04 16:15:51 +0100
committerGuillem Jover <guillem@debian.org>2011-03-14 07:21:54 +0100
commitfb49e131ef32039277c538f759ab19c1ff22e8fd (patch)
treef952e539893dcbac558a96f8761f68966ac19fff /src/enquiry.c
parent8e57f4f4224fc4f6f03a3aeef898e25f3ff881d5 (diff)
downloaddpkg-fb49e131ef32039277c538f759ab19c1ff22e8fd.tar.gz
Do not read the available file unnecessarily
For commands that only make use of information from the status file, there's no need to make them read and parse the available file. This change does not alter the current behaviour, and commands that were previously updating the available file will continue doing so. Removing further access to it is pending a decision on how to treat globally the available file, which needs interaction with the package manager frontend developers. Closes: #397121 Based-on-patch-by: Michel Lespinasse <walken@zoy.org>
Diffstat (limited to 'src/enquiry.c')
-rw-r--r--src/enquiry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/enquiry.c b/src/enquiry.c
index 38dbd2471..f83005035 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -134,7 +134,7 @@ void audit(const char *const *argv) {
if (*argv)
badusage(_("--%s takes no arguments"), cipaction->olong);
- modstatdb_init(admindir, msdbrw_readonly | msdbrw_available);
+ modstatdb_init(admindir, msdbrw_readonly);
for (bsi= badstatinfos; bsi->yesno; bsi++) {
struct pkgiterator *it;