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=2896dae700d8aaff73b4a05f07c0c138a20c784c

commit 2896dae700d8aaff73b4a05f07c0c138a20c784c
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Nov 29 02:23:01 2019 +0100

    libdpkg: Create the info/ database directory on demand
---
 debian/changelog           | 1 +
 lib/dpkg/db-ctrl-upgrade.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 589d4df3e..ea8c94f00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -54,6 +54,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
       already, or we are not which means we cannot change it anyway.
     - Create the dpkg database directory on demand.
     - Create the updates/ database directory on demand.
+    - Create the info/ 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/lib/dpkg/db-ctrl-upgrade.c b/lib/dpkg/db-ctrl-upgrade.c
index 9b6d735cc..00ef97cbc 100644
--- a/lib/dpkg/db-ctrl-upgrade.c
+++ b/lib/dpkg/db-ctrl-upgrade.c
@@ -210,7 +210,7 @@ pkg_infodb_upgrade_to_multiarch(void)
        char *db_format_file;
 
        db_format_file = dpkg_db_get_path(INFODIR "/format");
-       db_file = atomic_file_new(db_format_file, 0);
+       db_file = atomic_file_new(db_format_file, ATOMIC_FILE_MKPATH);
        atomic_file_open(db_file);
 
        push_cleanup(cu_abort_db_upgrade, ehflag_bombout, 1, db_file);

-- 
Dpkg.Org's dpkg

Reply via email to