← Back to team overview

desktop-packages team mailing list archive

[Bug 1393247] Re: Glade *.ui files not recognized due to comment line


Committed with a test case, thank you!

** Project changed: python-distutils-extra => python-distutils-extra

** Changed in: python-distutils-extra (Ubuntu)
       Status: New => Fix Committed

You received this bug notification because you are a member of Desktop
Packages, which is subscribed to python-distutils-extra in Ubuntu.

  Glade *.ui files not recognized due to comment line

Status in python-distutils-extra package in Ubuntu:
  Fix Committed

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.auto:
    ... many ...

  This fixes it for me:

  *** /tmp/auto.py	2014-11-16 21:03:04.244604628 +0100
  --- /usr/lib/python3/dist-packages/DistUtilsExtra/auto.py	2014-11-16 21:03:26.812605563 +0100
  *** 305,310 ****
  --- 305,311 ----
            fd = open(f, 'rb')
            firstlines = fd.readline()
            firstlines += b'\n' + fd.readline()
  +         firstlines += b'\n' + fd.readline()
            if b'<interface' in firstlines or b'<ui version=' in firstlines:
                src_mark(src, f)

  Ubuntu Vivid
  python3-distutils-extra 2.38-1build1
  glade 3.18.3-1

To manage notifications about this bug go to: