Glade *.ui files not recognized due to comment line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-distutils-extra (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Glade 3.18 likes to insert a comment as the second line that upsets auto.py. Onboard's package fails to build due to this, unless we remember to remove the offending line after every change. Could you have a look?
$ cd onboard
$ ./setup.py build
...
WARNING: the following files are not recognized by DistUtilsExtra.
... many ...
settings.ui
This fixes it for me:
*** /tmp/auto.py 2014-11-16 21:03:04.244604628 +0100
--- /usr/lib/
***************
*** 305,310 ****
--- 305,311 ----
fd = open(f, 'rb')
+ firstlines += b'\n' + fd.readline()
if b'<interface' in firstlines or b'<ui version=' in firstlines:
Ubuntu Vivid
python3-
glade 3.18.3-1
It just bit me again: /answers. launchpad. net/onboard/ +question/ 284286
https:/
Could someone have a look at this, please? It's not hard to fix at all.
Ubuntu Xenial distutils- extra 2.38-1build1
python3-
glade 3.18.3-1