- add patch: open rpm database with O_CREAT flag (we need it to use apt in system installer)
This commit is contained in:
parent
e7409ecffb
commit
96870b68f4
12
apt-0.5.15lorg2-alt-rpmdbopen.patch
Normal file
12
apt-0.5.15lorg2-alt-rpmdbopen.patch
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user