From 96870b68f4ecef73892055207eada0da86418733 Mon Sep 17 00:00:00 2001 From: Stanislav Ievlev Date: Mon, 19 Jan 2009 17:33:03 +0300 Subject: [PATCH] - add patch: open rpm database with O_CREAT flag (we need it to use apt in system installer) --- apt-0.5.15lorg2-alt-rpmdbopen.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apt-0.5.15lorg2-alt-rpmdbopen.patch diff --git a/apt-0.5.15lorg2-alt-rpmdbopen.patch b/apt-0.5.15lorg2-alt-rpmdbopen.patch new file mode 100644 index 0000000..52f57e4 --- /dev/null +++ b/apt-0.5.15lorg2-alt-rpmdbopen.patch @@ -0,0 +1,12 @@ +diff -Naur apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpm.cc 2009-01-19 17:12:32 +0300 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc 2009-01-19 17:13:31 +0300 +@@ -795,7 +795,7 @@ + const char *RootDir = NULL; + if (!Dir.empty()) + RootDir = Dir.c_str(); +- if (rpmdbOpen(RootDir, &DB, O_RDWR, 0644) != 0) ++ if (rpmdbOpen(RootDir, &DB, O_RDWR|O_CREAT, 0644) != 0) + { + _error->Error(_("Could not open RPM database")); + goto exit;