diff options
Diffstat (limited to 'swig/ResPool.i')
-rw-r--r-- | swig/ResPool.i | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/swig/ResPool.i b/swig/ResPool.i index b9f24e9..48634fa 100644 --- a/swig/ResPool.i +++ b/swig/ResPool.i @@ -3,11 +3,9 @@ %ignore zypp::ResPool::byKindEnd; %ignore zypp::ResPool::byNameBegin; %ignore zypp::ResPool::byNameEnd; -#if (BOOST_VERSION >= 106501) -%ignore zypp::ResPool::byStatus; -%ignore zypp::ResPool::byStatusBegin; -%ignore zypp::ResPool::byStatusEnd; -#endif +%ignore zypp::ResPool::byStatus; +%ignore zypp::ResPool::byStatusBegin; +%ignore zypp::ResPool::byStatusEnd; %apply unsigned { zypp::ResPool::size_type }; %include <zypp/ResPool.h> @@ -22,6 +20,35 @@ namespace zypp namespace zypp { +#ifdef SWIGPYTHON +namespace sat +{ +%extend Pool { + std::string loadSolvFile(std::string _solv, std::string _alias) + { + RepoInfo tmpRepo; + tmpRepo.setAlias(_alias); + + try { + addRepoSolv(_solv, tmpRepo); + } catch ( const Exception & e ) { + return e.msg(); + } + + return std::string(); + } +} +} +#endif + +%extend ResPool { + pool::GetResolvablesToInsDel getTransaction() + { + return pool::GetResolvablesToInsDel( *self ); + } +} + + #ifdef SWIGPERL5 iter2(ResPool, PoolItem); |