diff options
author | Guillem Jover <guillem@debian.org> | 2016-08-18 05:20:34 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-10-30 04:44:14 +0100 |
commit | 020460f5729775fcc5d7ac0a8289f87ce9732be0 (patch) | |
tree | 85f445d94716c41f7148e1db280927470675f4e3 /src | |
parent | fe8668803a7691b49a3b0aa1165c293d62235bb3 (diff) | |
download | dpkg-020460f5729775fcc5d7ac0a8289f87ce9732be0.tar.gz |
dpkg: Initialize and reset the filesdb in --command-fd
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
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); } |