projects
/
platform
/
upstream
/
libzypp-bindings.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix build error for swig 4.2.1
[platform/upstream/libzypp-bindings.git]
/
swig
/
RepoManager.i
1
%include <zypp/RepoManager.h>
2
#ifdef SWIGPYTHON
3
%extend zypp::RepoManager{
4
std::string loadSolvFile(std::string _solv, std::string _alias)
5
{
6
RepoInfo tmpRepo;
7
tmpRepo.setAlias(_alias);
8
try {
9
sat::Pool::instance().addRepoSolv(_solv, tmpRepo);
10
} catch ( const Exception & e ){
11
return e.msg();
12
}
13
14
return std::string();
15
}
16
}
17
#endif
18