[dpkg] 76/187: dpkg: Shutdown the modstatdb in --get-selections
Reiner Herrmann
reiner at reiner-h.de
Sun Nov 6 12:46:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository dpkg.
commit 83fdc82a38f4207ffa92162624c22c413534396d
Author: Guillem Jover <guillem at debian.org>
Date: Thu Aug 18 05:17:44 2016 +0200
dpkg: Shutdown the modstatdb in --get-selections
Otherwise we'll crash in commandfd.
---
debian/changelog | 1 +
src/select.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index fc69242..cfccfd0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
* Always reset the package in-core database when shutting down the package
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.
* 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/select.c b/src/select.c
index 1f0d4df..27d5307 100644
--- a/src/select.c
+++ b/src/select.c
@@ -103,6 +103,8 @@ getselections(const char *const *argv)
pkg_array_destroy(&array);
+ modstatdb_shutdown();
+
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list