summaryrefslogtreecommitdiff
path: root/src/enquiry.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-13 06:48:27 +0100
committerGuillem Jover <guillem@debian.org>2011-03-14 07:21:55 +0100
commit6c9093777f6121dc8c2ee3be44d2937402f3c028 (patch)
tree3195daa3221b751d0b612cbd27c6e4b49bc5bc2a /src/enquiry.c
parentbe596facc45b0b921322abd0d885bead822639f4 (diff)
downloaddpkg-6c9093777f6121dc8c2ee3be44d2937402f3c028.tar.gz
Make modstatdb locking functions not take an admindir argument
Initialize the lockfile on modstatdb_init() via the fnis array. Make sure we call modstatdb_init() and modstatdb_done() in case we are not calling modstatdb_open() and modstatdb_shutdown().
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 c5949a1c2..38593ae85 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -145,7 +145,7 @@ void audit(const char *const *argv) {
while ((pkg = pkg_db_iter_next(it))) {
if (!bsi->yesno(pkg,bsi)) continue;
if (!head_running) {
- if (modstatdb_is_locked(admindir))
+ if (modstatdb_is_locked())
puts(_(
"Another process has locked the database for writing, and might currently be\n"
"modifying it, some of the following problems might just be due to that.\n"));