This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=9b611f69a628387424b4597485cd274e5cce0998 commit 9b611f69a628387424b4597485cd274e5cce0998 Author: Guillem Jover <[email protected]> AuthorDate: Wed Mar 20 05:21:11 2019 +0100 dpkg-split: Create the parts/ database directory on demand This makes it possible to bootstrap dpkg w/o requiring external knowledge of internal details. --- debian/changelog | 1 + dpkg-split/queue.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3651ef6a6..9bea51e35 100644 --- a/debian/changelog +++ b/debian/changelog @@ -40,6 +40,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium * update-alternatives: Cope with a missing administrative directory. * update-alternatives: Create the administrative directory on demand. * dpkg-split: Cope with a missing parts/ database directory. + * dpkg-split: Create the parts/ database directory on demand. * Perl modules: - Dpkg::Source::Package: Verify original tarball signatures at build time. - Dpkg::BuildFlags: Add new unset() method. diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c index fbd743caf..0e00af54f 100644 --- a/dpkg-split/queue.c +++ b/dpkg-split/queue.c @@ -167,6 +167,10 @@ do_auto(const char *const *argv) } queue = scandepot(); + if (queue == NULL) + if (dir_make_path(opt_depotdir, 0755) < 0) + ohshite(_("cannot create directory %s"), opt_depotdir); + partlist = nfmalloc(sizeof(*partlist) * refi->maxpartn); for (i = 0; i < refi->maxpartn; i++) partlist[i] = NULL; -- Dpkg.Org's dpkg

