[yast-commit] r39993 - in /trunk/python-bindings: src/YPython.cc yast2-python-bindings.spec.in
Author: juhliarik Date: Mon Aug 6 14:13:40 2007 New Revision: 39993 URL: http://svn.opensuse.org/viewcvs/yast?rev=39993&view=rev Log: solved problem with building rpm Modified: trunk/python-bindings/src/YPython.cc trunk/python-bindings/yast2-python-bindings.spec.in Modified: trunk/python-bindings/src/YPython.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/src/YPython.cc?re... ============================================================================== --- trunk/python-bindings/src/YPython.cc (original) +++ trunk/python-bindings/src/YPython.cc Mon Aug 6 14:13:40 2007 @@ -189,10 +189,11 @@ // boolean value handling if (PyBool_Check(pPythonValue)) { - int compare = PyObject_Compare(pPythonValue, Py_True); + PyObject * true_value = PyBool_FromLong(1); + int compare = PyObject_Compare(pPythonValue, true_value); if (compare == 0) { out = YCPBoolean (true); - } else if (compare < 0) { + } else if (compare < 1) { out = YCPBoolean (false); } else { return false; Modified: trunk/python-bindings/yast2-python-bindings.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/python-bindings/yast2-python-bind... ============================================================================== --- trunk/python-bindings/yast2-python-bindings.spec.in (original) +++ trunk/python-bindings/yast2-python-bindings.spec.in Mon Aug 6 14:13:40 2007 @@ -21,6 +21,7 @@ @INSTALL@ rm $RPM_BUILD_ROOT/@plugindir@/libpy2lang_python.la +rm $RPM_BUILD_ROOT/%{_libdir}/python/site-packages/libYCP.la @CLEAN@ @@ -33,5 +34,4 @@ # libYCP goes elsewhere %dir %{_libdir}/python %{_libdir}/python/site-packages -%dir @moduledir@ %doc @docdir@ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
juhliarik@svn.opensuse.org