diff options
Diffstat (limited to 'meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch')
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch b/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch new file mode 100644 index 0000000000..f15bb68d51 --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | diff --git a/zypp/target/rpm/librpmDb.cc b/zypp/target/rpm/librpmDb.cc | ||
2 | index 1689fbb..4999cd9 100644 | ||
3 | --- a/zypp/target/rpm/librpmDb.cc | ||
4 | +++ b/zypp/target/rpm/librpmDb.cc | ||
5 | @@ -60,20 +60,6 @@ public: | ||
6 | const char * root = ( _root == "/" ? NULL : _root.asString().c_str() ); | ||
7 | int perms = 0644; | ||
8 | |||
9 | - // check whether to create a new db | ||
10 | - PathInfo master( _root + _dbPath + "Packages" ); | ||
11 | - if ( ! master.isFile() ) | ||
12 | - { | ||
13 | - // init database | ||
14 | - int res = ::rpmdbInit( root, perms ); | ||
15 | - if ( res ) | ||
16 | - { | ||
17 | - ERR << "rpmdbInit error(" << res << "): " << *this << endl; | ||
18 | - _error = shared_ptr<RpmInitException>(new RpmInitException(_root, _dbPath)); | ||
19 | - ZYPP_THROW(*_error); | ||
20 | - } | ||
21 | - } | ||
22 | - | ||
23 | // open database | ||
24 | int res = ::rpmdbOpen( root, &_db, (readonly_r ? O_RDONLY : O_RDWR ), perms ); | ||
25 | if ( res || !_db ) | ||