This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

commit 020460f5729775fcc5d7ac0a8289f87ce9732be0
Author: Guillem Jover <[email protected]>
Date:   Thu Aug 18 05:20:34 2016 +0200

    dpkg: Initialize and reset the filesdb in --command-fd
---
 debian/changelog | 2 ++
 src/main.c       | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cfccfd0..d8eeeee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,8 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
     database journal.
   * Do not crash if we pass a NULL cip argument to setaction() in libdpkg.
   * Shutdown the package database journal in dpkg --get-selections.
+  * Fix (deactivated) dpkg --command-fd to initialize and reset the files
+    database on each action.
   * Perl modules:
     - Obsolete Source-Version substvar in Dpkg::Substvars by emitting errors.
     - Rework keyring hooks in Dpkg::Vendor. Deprecate the keyrings hook, and
diff --git a/src/main.c b/src/main.c
index 97a9985..5452f21 100644
--- a/src/main.c
+++ b/src/main.c
@@ -868,8 +868,12 @@ commandfd(const char *const *argv)
     dpkg_options_parse((const char *const **)&endargs, cmdinfos, printforhelp);
     if (!cipaction) badusage(_("need an action option"));
 
+    filesdbinit();
+
     ret |= cipaction->action(endargs);
 
+    files_db_reset();
+
     pop_error_context(ehflag_normaltidy);
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/dpkg/dpkg.git

Reply via email to