[ubuntu-dev] Bug#714337: gdebi-core: Exception handling in GDebiCli.py causes another exception

Jim Garrison jim at garrison.cc
Fri Jun 28 03:10:06 UTC 2013


Package: gdebi-core
Version: 0.9
Severity: normal
Tags: upstream

There is an exception path on line 132 of GDebiCli.py that references
a variable, "res", that will not be set if the exception is triggered.

    Traceback (most recent call last):
      File "/usr/bin/gdebi", line 118, in <module>
        sys.exit(debi.install())
      File "/usr/share/gdebi/GDebi/GDebiCli.py", line 132, in install
        logging.debug("commit() returned %s" % res)
    UnboundLocalError: local variable 'res' referenced before assignment

This bug also seems to exist upstream, if upstream is indeed located at http://bazaar.launchpad.net/~gdebi-developers/gdebi/trunk/view/head:/GDebi/GDebiCli.py#L132


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages gdebi-core depends on:
ii  file           1:5.14-2
ii  python         2.7.5-2
ii  python-apt     0.8.9
ii  python-debian  0.1.21+nmu2

gdebi-core recommends no packages.

Versions of packages gdebi-core suggests:
ii  xz-utils  5.1.1alpha+20120614-2

-- no debconf information



More information about the ubuntu-dev-team mailing list