Package None does not exist

Bug #503834 reported by David Henningsson on 2010-01-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: apport

I'm trying to write an apport symptom and came across the following error; when returning the name of a source package instead of a binary package, apport fails with the error "Package None does not exist". I would like it to at least report the right package instead (or I wouldn't have spent hours trying to figure out how I could have returned None, when in fact I hadn't).

The following symptom script would reproduce the error:

def run(report, ui):
    return 'libffado'

Expected either
1) source package to be accepted or
2) the error "Package libffado does not exist" instead of "Package None does not exist"

What happened instead:

*** Error: Invalid problem report
Package None does not exist

ProblemType: Bug
ApportLog:

Architecture: amd64
CheckboxSubmission: f6f6c1db2c80d23ca163011ad01858b3
CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
Date: Wed Jan 6 16:03:02 2010
DistroRelease: Ubuntu 9.10
Package: apport 1.9.3-0ubuntu4.2
PackageArchitecture: all
ProcEnviron:
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: apport
Uname: Linux 2.6.31-16-generic x86_64

David Henningsson (diwic) wrote :
Martin Pitt (pitti) wrote :

I fixed it to say

  Symptom script %s did not determine an affected package') % symptom_script

in that case.

(trunk r1706)

Changed in apport (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.12.1-0ubuntu1

---------------
apport (1.12.1-0ubuntu1) lucid; urgency=low

  [ Martin Pitt ]
  * New upstream bug fix release:
    - launchpad.py: Do not keep escalating bugs, just escalate at the 10th
      duplicate.
    - Improve error message if a symptom script did not determine a package
      name. (LP: #503834)
    - general-hooks/generic.py: Fix crash on libGL check with empty
      StacktraceTop.
    - Review and clean up usage of chmod(). This fixes a small race condition
      in the Python exception hook where a local attacker could read the
      information from another user's crash report. (LP: #516029)
    - hookutils, package_versions(): Ignore "None" packages, for more robust
      package hooks. (LP: #518295)
  * debian/apport.install: Actually install the bash completion file.
    (LP: #218933)
  * Bump Standards-Version to 3.8.4 (no changes necessary).

  [ Leann Ogasawara ]
  * source_linux.py: Tag kernel bugs which utilize a driver from staging. Also
    provide the list of staging drivers in use. Prefix suspend/resume bug
    titles with "[STAGING]" if a staging driver was being used.
    (LP: #524174, #524167)
 -- Martin Pitt <email address hidden> Mon, 22 Feb 2010 21:58:16 +0100

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers