[Bug 999890] Re: does not block follow up errors from earlier reports

Launchpad Bug Tracker 999890 at bugs.launchpad.net
Fri Jun 1 16:00:13 UTC 2012


This bug was fixed in the package update-manager - 1:0.160

---------------
update-manager (1:0.160) quantal; urgency=low

  [ Colin Watson ]
  * Use Python 3-style print functions.
  * Use "except Exception as e" syntax rather than the old-style "except
    Exception, e".
  * Fix a few assorted pyflakes warnings.
  * Use string methods rather than functions from the string module.
  * Replace most uses of filter and map with list comprehensions or for
    loops.
  * Use open() rather than file().
  * Use Python 3 renaming of ConfigParser if available.
  * Use "raise Exception(value)" syntax rather than the old-style "raise
    Exception, value".
  * Remove duplicate imports of os.path; 'import os' is enough.
  * Use Python 3 renamings of urllib, urllib2, and urlparse if available.
  * Remove all hard tabs from Python code.  Python 3 no longer tolerates
    mixing tabs and spaces for indentation.
  * Use Python 3 renaming of httplib if available.
  * Use email.utils.parsedate (with a DST handling correction) rather than
    the long-deprecated rfc822.parsedate.
  * Use the threading module instead of thread (renamed to _thread in Python
    3).
  * Tell Python to use absolute imports by default, and annotate cases where
    we need relative imports.
  * Update test_proxy to use gsettings and the python-apt 0.8 API.
  * Use new-style octal literals.
  * Drop use of deprecated statvfs module.
  * Use Python 3 renamings of BaseHTTPServer and SocketServer if available.
  * Modernise use of unittest methods.
  * Use python-apt 0.8 API spellings of apt_pkg.config methods.
  * Fix several ResourceWarnings with Python 3.
  * Port to python-apt 0.8 progress classes.
  * Since python-gnupginterface is not likely to be ported to Python 3, and
    since it's almost just as easy to call gpg directly via subprocess, do
    so.
  * Use gettext if ugettext does not exist (as in Python 3).
  * Ignore __pycache__ directories, and exclude them from dist-upgrader
    tarballs.
  * Fix up module path when running AutoUpgradeTester/auto-install-tester.py
    from the build tree.
  * Add a DistUpgrade -> . symlink in DistUpgrade/, to make it possible to
    have compatible imports both in update-manager proper and in
    dist-upgrader tarballs.
  * Use only absolute imports in AutoUpgradeTester/auto-install-tester.py
    and DistUpgrade/dist-upgrade.py; these have no __package__ and so cannot
    use relative imports.
  * Open subprocesses with universal_newlines=True when expecting to read
    text from them.  On Python 2, this only enables \r\n conversion and the
    like, but on Python 3 this also causes subprocess-related file objects
    to read str rather than bytes.
  * Use "key in dict" rather than "dict.has_key(key)".
  * Pass globals() to __import__ so that relative imports work.

  [ Michael Vogt ]
  * DistUpgrade/*.py:
    - update for the 12.04 -> 12.10 upgrade
  * AutoUpgradeTester/profile/defaults.cfg.d/defaults.cfg:
    - update for precise->quantal
  * fix some remaining python-apt 0.8+ API issues

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeApport.py
    - check errormsg for the English version of the dependency problems error
      first (LP: #999890)

  [ Michael Terry ]
  * Rename to Software Updater and fix some other strings to match mpt's
    spec.
  * lp:~mterry/update-manager/move-changelogs:
    - implement new app layout
 -- Michael Vogt <michael.vogt at ubuntu.com>   Fri, 01 Jun 2012 17:48:54 +0200

** Changed in: update-manager (Ubuntu)
       Status: Triaged => Fix Released

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

Title:
  does not block follow up errors from earlier reports

Status in “update-manager” package in Ubuntu:
  Fix Released
Status in “update-manager” source package in Oneiric:
  Triaged
Status in “update-manager” source package in Precise:
  Triaged

Bug description:
  update-manager wants to prevent reporting apport-package problems
  regarding follow up errors from earlier reports, however it is failing
  to do so in some cases.

  In DistUpgrade/DistUpgraeApport.py  we have the code to block the
  reporting:

      # we do not report followup errors from earlier failures
      if gettext.dgettext('dpkg', "dependency problems - leaving unconfigured") in errormsg: 
          return False

  This works great if your dpkg error messages are in your native
  language.  However, they aren't by default since the following upload
  in update-manager:

  update-manager (1:0.151.8) oneiric; urgency=low

    * DistUpgrade/DistUpgradeViewGtk.py:
      - set DPKG_UNTRANSLATED_MESSAGES to force untranslated dpkg
        terminal messages for easier package failure duplication
        detection

  So if someone has their language set to a language other than English,
  then gettext.dgettext() will look up the translated version of the
  'dependency problems' error message.  The translated version won't
  appear in the errormsg because we don't translate them anymore.

  This should be fixed in Quantal, Precise and Oneiric to prevent
  reporting of bugs we aren't interested in.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/999890/+subscriptions




More information about the foundations-bugs mailing list