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