Public bug reported:

Binary package hint: apport

While "/usr/share/apport/apport-kde -u 532898" does work as expected,
"ubuntu-bug -u 532898" opens the "report by symptom" dialog.

This is related to
  export APPORT_INVOKED_AS="$0"
in /usr/bin/ubuntu-bug - commenting this line makes "-u" work as expected, too.

After digging into the code (apport/ui.py) this is caused by:
        # no argument: default to "show pending crashes" except when called in
        # bug mode
        if len(self.args) == 0 and cmd.endswith('-bug'):
            self.options.filebug = True
            return
self.args is empty in most cases, and what's meant to get checked here is 
apparently sys.argv.

I'll attach a branch to fix this.

ProblemType: Bug
Architecture: i386
Date: Fri Mar  5 21:40:43 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: apport 1.12.1-0ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-15.22-generic
SourcePackage: apport
Uname: Linux 2.6.32-15-generic i686

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
"ubuntu-bug -u $BUG" not working, but "apport-{kde,gtk} -u $BUG"
https://bugs.launchpad.net/bugs/532944
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to