[MacPorts] #19440: Improper use of tabs in Python script gtk-builder-convert
MacPorts
noreply at macports.org
Sun Apr 26 06:19:33 PDT 2009
#19440: Improper use of tabs in Python script gtk-builder-convert
----------------------------+-----------------------------------------------
Reporter: gale@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.1
Keywords: | Port: gtk2 gnome-keyring
----------------------------+-----------------------------------------------
{{{
$ port list gtk2 gnome-keyring
gtk2 @2.16.1 x11/gtk2
gnome-keyring @2.26.1 gnome/gnome-keyring
}}}
The python script /opt/local/bin/gtk-builder-convert from the gtk2 port
contains a line indented by tabs instead of spaces. That is a python
no-no!
This causes the port gnome-keyring to fail to build with the
following error:
{{{
gtk-builder-convert --skip-windows gcr-certificate-basics-widget.glade
gcr-certificate-basics-widget.ui
File "/opt/local/bin/gtk-builder-convert", line 261
print "WARNING: duplicate id \"" + node.getAttribute('id') + "\""
^
TabError: inconsistent use of tabs and spaces in indentation
}}}
That line of the python script does not appear in the upstream svn.
Apparently it was added by MacPorts.
Please change the two tabs at the beginning of that line
to a total of 16 spaces. Or remove the line altogether.
--
Ticket URL: <http://trac.macports.org/ticket/19440>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list