summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-05-26 14:45:13 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-05-26 14:47:50 +0900
commit90002c800722a14f7e1e2b7781a78b00dfb3e065 (patch)
tree44ea2b56402f25eedbc3159ba93f9b7745257f36
parent171a3544dc3167f64f2ac404bd1de643964cfe4d (diff)
downloadlibzypp-bindings-90002c800722a14f7e1e2b7781a78b00dfb3e065.tar.gz
libzypp-bindings-90002c800722a14f7e1e2b7781a78b00dfb3e065.tar.bz2
libzypp-bindings-90002c800722a14f7e1e2b7781a78b00dfb3e065.zip
Patch zypp::RepoManagersubmit/tizen/20170526.055906
zypp::RepoManager loadSolvFile() is used at mic [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] mic image create error VERBOSE: Failed to load plugin backend/zypppkgmgr: python-zypp in host system cannot support PoolQuery or loadSolvFile interface, please update it to enhanced version which can be found in download.tizen.org/tools [Cause & Measure] Add patch [Checking Method] N/A [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I3c8fe708f726abc747b4bc01cc22b6be5a27ab21 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r--swig/RepoManager.i18
1 files changed, 18 insertions, 0 deletions
diff --git a/swig/RepoManager.i b/swig/RepoManager.i
index 8f7870d..899ed6f 100644
--- a/swig/RepoManager.i
+++ b/swig/RepoManager.i
@@ -1 +1,19 @@
%include <zypp/RepoManager.h>
+
+#ifdef SWIGPYTHON
+%extend zypp::RepoManager{
+ std::string loadSolvFile(std::string _solv, std::string _alias)
+ {
+ RepoInfo tmpRepo;
+ tmpRepo.setAlias(_alias);
+ try {
+ sat::Pool::instance().addRepoSolv(_solv, tmpRepo);
+ } catch ( const Exception & e ){
+ return e.msg();
+ }
+
+ return std::string();
+ }
+}
+#endif
+