summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-08-18 05:20:34 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 04:44:14 +0100
commit020460f5729775fcc5d7ac0a8289f87ce9732be0 (patch)
tree85f445d94716c41f7148e1db280927470675f4e3 /src
parentfe8668803a7691b49a3b0aa1165c293d62235bb3 (diff)
downloaddpkg-020460f5729775fcc5d7ac0a8289f87ce9732be0.tar.gz
dpkg: Initialize and reset the filesdb in --command-fd
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 97a998541..5452f21a3 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);
}