~brian-murray/update-manager/no-zero-byte-files

« back to all changes in this revision

Viewing changes to utils/demotions.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-04-05 15:49:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110405154958-vw2scwtrzud9ef6a
Tags: 1:0.147.2
* UpdateManager/backend/InstallBackendAptdaemon.py:
  - no not trigger a apport exception on user auth issues and if
    the user does not type the password in time (LP: #626798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    return replaces
45
45
  pkg = cache[pkgname]
46
46
  ver = cache._depcache.get_candidate_ver(pkg._pkg)
 
47
  if not ver:
 
48
    return replaces
47
49
  depends = ver.depends_list
48
50
  for t in ["Replaces"]:
49
51
    if not depends.has_key(t):