From e729ec3b2463bab2f5c3a0932931934a0a6191a5 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 2 Jan 2012 16:18:27 +0000 Subject: (rpmdbinit) do all the needed work git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@176 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/NEWS | 1 + RPM4/src/RPM4.xs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'RPM4') diff --git a/RPM4/NEWS b/RPM4/NEWS index 1134385..a6a8764 100644 --- a/RPM4/NEWS +++ b/RPM4/NEWS @@ -1,4 +1,5 @@ - make Spec->build works with rpm-4.9 +- make initdb do all the needed work Version 0.26 - 21 December 2011 diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 99c251e..6d95edb 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -1371,7 +1371,7 @@ rpmdbinit(rootdir = NULL) /* rpm{db,ts}init is deprecated, we open a database with create flags * and close it */ /* 0 on success */ - RETVAL = rpmtsOpenDB(ts, O_RDWR | O_CREAT); + RETVAL = rpmtsInitDB(ts, 0644); ts = rpmtsFree(ts); OUTPUT: RETVAL -- cgit v1.2.1