← Back to team overview

desktop-packages team mailing list archive

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

 

This bug was fixed in the package python-distutils-extra - 2.39-1

---------------
python-distutils-extra (2.39-1) unstable; urgency=medium

  * test/auto.py: Show exactly which modules are missing. Thanks Daniel Macks!
    (LP: #1303550)
  * Ignore comment in second line when parsing *.ui files. Thanks marmuta!
    (LP: #1393247)
  * Drop obsolete X-Python-Version.
  * Convert build systemd to pybuild.
  * Bump Standards-Version to 3.9.6.
  * debian/copyright: Rename field to "Format:".

 -- Martin Pitt <mpitt@xxxxxxxxxx>  Wed, 03 Feb 2016 09:56:55 +0100

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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to python-distutils-extra in Ubuntu.
https://bugs.launchpad.net/bugs/1393247

Title:
  Glade *.ui files not recognized due to comment line

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

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 ...
    settings.ui

  
  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()
            fd.close()
            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:
https://bugs.launchpad.net/ubuntu/+source/python-distutils-extra/+bug/1393247/+subscriptions