FS#35505 - [python2-rst2pdf] 0.93-3 - sed command in PKGBUILD makes unintended changes
Attached to Project:
Community Packages
Opened by Tobias Patzl (tharugrim) - Monday, 27 May 2013, 18:56 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 02 June 2013, 18:24 GMT
Opened by Tobias Patzl (tharugrim) - Monday, 27 May 2013, 18:56 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 02 June 2013, 18:24 GMT
|
Details
Description:
The sed command [1] used in the PKGBUILD to change the shebang-lines of the python-modules from '#!/usr/bin/env python' to '#!/usr/bin/env python2' makes unintended changes when there is no shebang-line. So this command should be changed to be more specific. [1] Line 26: find . -name "*.py" -exec sed -i '0,/on/s//on2/' {} \; e.g. In the file '/usr/lib/python2.7/site-packages/rst2pdf/log.py': it changes line 7 from 'logging.basicConfig(' to 'logging.basicCon2fig('. Additional info: * python2-rst2pdf 0.93-3 * error: Traceback (most recent call last): File "/usr/bin/rst2pdf", line 9, in <module> load_entry_point('rst2pdf==0.93.dev', 'console_scripts', 'rst2pdf')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 343, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2325, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2031, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.7/site-packages/rst2pdf/createpdf.py", line 45, in <module> from opt_imports import psyco File "/usr/lib/python2.7/site-packages/rst2pdf/opt_imports.py", line 17, in <module> from log import log File "/usr/lib/python2.7/site-packages/rst2pdf/log.py", line 7, in <module> logging.basicCon2fig( AttributeError: 'module' object has no attribute 'basicCon2fig' Steps to reproduce: * try to convert a reST-file to PDF |
This task depends upon
Comment by
Alexander F. Rødseth (xyproto) -
Sunday, 02 June 2013, 18:24 GMT
Thanks for reporting. The updated package should appear in
[community] shortly.