Date: Sun, 5 Sep 2010 04:50:04 GMT From: Erick Crager <erick.crager@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/150294: hellanzb fails to run due to string compare bug Message-ID: <201009050450.o854o4wt053155@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/150294; it has been noted by GNATS. From: Erick Crager <erick.crager@gmail.com> To: bug-followup@FreeBSD.org, erick.crager@gmail.com Cc: Subject: Re: ports/150294: hellanzb fails to run due to string compare bug Date: Sat, 4 Sep 2010 21:13:32 -0700 --0015174be55a0b7308048f7b6312 Content-Type: text/plain; charset=ISO-8859-1 I actually needed to patch two more .py files in a similar manner to make hellanzb.py work: $ cat htpasswd.diff --- /usr/local/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/HtPasswdAuth.py 2007-03-26 21:20:43.000000000 -0700 +++ HtPasswdAuth.py 2010-09-04 19:57:19.000000000 -0700 @@ -13,7 +13,7 @@ from twisted.web.resource import Resource import twisted.copyright -if twisted.copyright.version >= '2.0.0': +if float(twisted.copyright.version.split('.',1)[0]) >= 2.0: from twisted.web import http else: from twisted.protocols import http $ cat xmlrpc.diff --- /usr/local/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/xmlrpc.py 2007-03-26 21:20:43.000000000 -0700 +++ xmlrpc.py 2010-09-04 19:55:04.000000000 -0700 @@ -31,7 +31,7 @@ from twisted.python import log, reflect import twisted.copyright -if twisted.copyright.version >= '2.0.0': +if float(twisted.copyright.version.split('.',1)[0]) >= 2.0: from twisted.web import http else: from twisted.protocols import http After patching these two files, hellanzb works properly. Erick Crager --0015174be55a0b7308048f7b6312 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I actually needed to patch two more .py files in a similar manner to make h= ellanzb.py work:<br><br>$ cat htpasswd.diff<br>--- /usr/local/lib/python2.6= /site-packages/Hellanzb/HellaXMLRPC/HtPasswdAuth.py 2007-03-26 21:20:43.000= 000000 -0700<br> +++ HtPasswdAuth.py=A0=A0=A0=A0 2010-09-04 19:57:19.000000000 -0700<br>@@ -= 13,7 +13,7 @@<br>=A0from twisted.web.resource import Resource<br><br>=A0imp= ort twisted.copyright<br>-if twisted.copyright.version >=3D '2.0.0&#= 39;:<br>+if float(twisted.copyright.version.split('.',1)[0]) >= =3D 2.0:<br> =A0=A0=A0=A0 from twisted.web import http<br>=A0else:<br>=A0=A0=A0=A0 from = twisted.protocols import http<br><br><br>=A0$ cat xmlrpc.diff<br>--- /usr/l= ocal/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/xmlrpc.py=A0=A0=A0=A0= =A0=A0 2007-03-26 21:20:43.000000000 -0700<br> +++ xmlrpc.py=A0=A0 2010-09-04 19:55:04.000000000 -0700<br>@@ -31,7 +31,7 @= @<br>=A0from twisted.python import log, reflect<br><br>=A0import twisted.co= pyright<br>-if twisted.copyright.version >=3D '2.0.0':<br>+if fl= oat(twisted.copyright.version.split('.',1)[0]) >=3D 2.0:<br> =A0=A0=A0=A0 from twisted.web import http<br>=A0else:<br>=A0=A0=A0=A0 from = twisted.protocols import http<br><br>After patching these two files, hellan= zb works properly.<br><br>Erick Crager<br> --0015174be55a0b7308048f7b6312--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009050450.o854o4wt053155>