This bug was fixed in the package apport - 2.10.2-0ubuntu2

---------------
apport (2.10.2-0ubuntu2) saucy; urgency=low

  [ Brian Murray ]
  * data/general-hooks/ubuntu.py:
    - Resolve crash in duplicate signature calculation when the package is not
      installed (LP: #1184121)
    - Remove unusable check for previous package install failures
    - Fix indentation of package-conflict check

  [ Martin Pitt ]
  * Raise python-apport's "Suggests: python launchpadlib" to Depends:, as the
    only reason why to install this package is for apport-collect these days.
    (LP: #1192330)
  * Merge from trunk:
    - hookutils.py, attach_conffiles(): Fix check for inaccessible or modified
      conffiles. (LP: #1192899)
    - Updated translations from LP.
  * etc/apport/crashdb.conf: Enable crash reports on Launchpad for saucy.
 -- Martin Pitt <[email protected]>   Fri, 21 Jun 2013 07:16:00 +0200

** Changed in: apport (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  hookutils.py usage of startswith() assumes strings, but objects are
  bytes

Status in “apport” package in Ubuntu:
  Fix Released

Bug description:
  Bug 1190526 has an associated HookError_ubuntu.txt containing:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in 
_run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 92, in add_info
      apport.hookutils.attach_conffiles(report, package, ui=ui)
    File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 132, in 
attach_conffiles
      if contents == '[deleted]' or contents.startswith('[inaccessible'):
  TypeError: startswith first arg must be bytes or a tuple of bytes, not str

  
  The python3-specific problem seems to be that startswith() is expecting a 
value of the same type as 'contents'. The code assumes contents is a string, 
but its is a byte tuple.

  A fix therefore might be "b'[inaccessible'" like this:

      if contents == '[deleted]' or
  contents.startswith(b'[inaccessible'):

  However, I haven't checked all other instances of startswith().

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1192899/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to