summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-02-27 16:20:16 +0100
committerMichael Schroeder <mls@suse.de>2014-02-27 16:20:16 +0100
commitab8b3ded9b6c910955a6d0e890714e2fbaec933d (patch)
tree6fa4e759f2fd33fe0674760436f56add5986ecb4 /bindings
parent7d789da49649525fe99ff79d50de363d016937f2 (diff)
downloadlibsolv-ab8b3ded9b6c910955a6d0e890714e2fbaec933d.tar.gz
libsolv-ab8b3ded9b6c910955a6d0e890714e2fbaec933d.tar.bz2
libsolv-ab8b3ded9b6c910955a6d0e890714e2fbaec933d.zip
fix Pool_repo_iterator and Repo_solvable_iterator in perl bindings
A perliter() call was missing.
Diffstat (limited to 'bindings')
-rw-r--r--bindings/CMakeLists.txt7
-rw-r--r--bindings/solv.i9
2 files changed, 13 insertions, 3 deletions
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 9000773..202d7e6 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -6,8 +6,15 @@ MESSAGE (STATUS "Found SWIG version ${SWIG_VERSION}")
SET (SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/solv.i")
IF (ENABLE_PYTHON)
+ IF (ENABLE_PYTHON3)
+ # build for both python and python3
+ SET (PythonLibs_FIND_VERSION 2)
+ ENDIF (ENABLE_PYTHON3)
ADD_SUBDIRECTORY (python)
ENDIF (ENABLE_PYTHON)
+IF (ENABLE_PYTHON3)
+ ADD_SUBDIRECTORY (python3)
+ENDIF (ENABLE_PYTHON3)
IF (ENABLE_PERL)
ADD_SUBDIRECTORY (perl)
ENDIF (ENABLE_PERL)
diff --git a/bindings/solv.i b/bindings/solv.i
index 21613a2..5c0cfb8 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -1752,11 +1752,9 @@ rb_eval_string(
}
}
#endif
-
#ifdef SWIGPERL
perliter(solv::Dataiterator)
#endif
-
%newobject __next__;
Datamatch *__next__() {
Dataiterator *ndi;
@@ -1986,7 +1984,6 @@ rb_eval_string(
}
}
#endif
-
#ifdef SWIGPERL
perliter(solv::Pool_solvable_iterator)
#endif
@@ -2046,6 +2043,9 @@ rb_eval_string(
}
}
#endif
+#ifdef SWIGPERL
+ perliter(solv::Pool_repo_iterator)
+#endif
%newobject __next__;
Repo *__next__() {
Pool *pool = $self->pool;
@@ -2103,6 +2103,9 @@ rb_eval_string(
}
}
#endif
+#ifdef SWIGPERL
+ perliter(solv::Repo_solvable_iterator)
+#endif
%newobject __next__;
XSolvable *__next__() {
Repo *repo = $self->repo;