Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39993 - in /trunk/python-bindings: src/YPython.cc yast2-python-bindings.spec.in
  • From: juhliarik@xxxxxxxxxxxxxxxx
  • Date: Mon, 06 Aug 2007 12:13:40 -0000
  • Message-id: <20070806121340.D891FB5A65@xxxxxxxxxxxxxxxx>
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?rev=39993&r1=39992&r2=39993&view=diff
==============================================================================
--- 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-bindings.spec.in?rev=39993&r1=39992&r2=39993&view=diff
==============================================================================
--- 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages