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