[Bug 1120322] Re: update-manager crashed with UnboundLocalError in show_diff(): local variable 'line_number' referenced before assignment

Launchpad Bug Tracker 1120322 at bugs.launchpad.net
Thu Mar 14 21:09:43 UTC 2013


This bug was fixed in the package aptdaemon - 1.0-0ubuntu1

---------------
aptdaemon (1.0-0ubuntu1) raring; urgency=low

  * New stable bug fix release 1.0:
    - Add PEP8 compliance and a corresponding test
    - Fix PackageKit tests if an http proxy is set (LP: #1050799)
    - Fix crash for Python GTK2 clients (LP: #1108552)
    - Fix crash if configuration file changes are only one line long -
      thanks to Barry Warsaw and Robert Collins (LP: #1120322)
    - Fix crash if the removal of a package valid candidate is simulated
    - Allow repository release names to include dots
    - Convert aptdaemon exceptions to PackageKit ones in the compat
      layer (currently only invalid input ant failed authorization are
      supported)
    - Store the default values in the PackageKit transaction interface
      statically typed
    - Fix setting the speed property in the PackageKit interface
    - Several grammar and typo fixes in user interface messages and
      documentation (LP: #1112492)
  * debian/patches:
    - fix-high-trust-pkcompat.diff: updated
    - apt-dbus-text-api.patch: updated
    - fix-gobject-io-add-watch.patch: Added. Always include the priority
      in a GLib.io_add_watch() call to not cause problems with the backwards
      compatibility

  [ Barry Warsaw ]
  * debian/control:
    - Add Build-Depend on gir1.2-gnomedesktop-3.0, gir1.2-vte-2.90, pep8,
      and xvfb.
    - Bump Standards-Version to 3.9.4.
  * debian/rules: Run the tests under xvfb-run to avoid core dumps.
  * debian/patches/pep8-fixes.patch: Fix PEP 8 violations.
  * debian/patches/lp1153725-temporary-workaround.patch: Temporarily
    disable two tests which fail during the build.
  * debian/rules:
    - Add the missing test directory and symlinks before running tests.
    - Clean up symlink directory in override_dh_auto_clean.
    - Sleep before the xvfb-run with a different Python version.  Tear
      down of xvfb-run resources is apparently not immediate.
 -- Sebastian Heinlein <glatzor at ubuntu.com>   Mon, 11 Mar 2013 07:02:07 +0100

** Changed in: aptdaemon (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/1120322

Title:
  update-manager crashed with UnboundLocalError in show_diff(): local
  variable 'line_number' referenced before assignment

Status in Aptdaemon:
  Fix Released
Status in “aptdaemon” package in Ubuntu:
  Fix Released
Status in “aptdaemon” source package in Precise:
  Triaged

Bug description:
  Test Case:

  1) Create a file named a.txt in /tmp/ with the contents 'one' in it.
  2) Create a file named b.txt in /tmp/ with the contents 'onee' in it.
  3) In a terminal start python3
  4) from aptdaemon.gtk3widgets import DiffView
  5) dv = DiffView()
  6) dv.show_diff('/tmp/a.txt', '/tmp/b.txt')

  With the unfixed version of aptdaemon observe an UnboundLocalError.

  
  At the same time as the crash appeared, I got a box for Keep/Renew Steam config file.
  I was however no able to click on either Keep/Renew.

  ProblemType: CrashDistroRelease: Ubuntu 13.04
  Package: update-manager 1:0.181
  ProcVersionSignature: Ubuntu 3.8.0-4.8-generic 3.8.0-rc6
  Uname: Linux 3.8.0-4-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.8-0ubuntu4
  Architecture: amd64
  Date: Sat Feb  9 14:05:09 2013
  ExecutablePath: /usr/bin/update-manager
  GsettingsChanges:
   b'com.ubuntu.update-manager' b'first-run' b'false'
   b'com.ubuntu.update-manager' b'launch-time' b'1360363834'
   b'com.ubuntu.update-manager' b'show-details' b'true'
   b'com.ubuntu.update-manager' b'window-height' b'625'
   b'com.ubuntu.update-manager' b'window-width' b'591'
  InstallationDate: Installed on 2012-08-22 (170 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
  InterpreterPath: /usr/bin/python3.3
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager
  ProcEnviron:
   LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=nb_NO.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/update-manager']SourcePackage: update-manager
  Title: update-manager crashed with UnboundLocalError in show_diff(): local variable 'line_number' referenced before assignment
  UpgradeStatus: Upgraded to raring on 2013-01-22 (18 days ago)
  UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo tty

To manage notifications about this bug go to:
https://bugs.launchpad.net/aptdaemon/+bug/1120322/+subscriptions




More information about the foundations-bugs mailing list