~evfool/update-manager/fix665173

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewGtk.py

  • Committer: Michael Vogt
  • Date: 2011-02-23 17:11:23 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110223171123-wrbx0xuqxvkporh4
merged lp:~thibault-lemaitre/ubuntu/natty/update-manager/from_pkg.isInstalled_to_pkg.is_installed
that fixes a bunch of deprecated python-apt issues (many thanks!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
720
720
 
721
721
  cache = apt.Cache()
722
722
  for pkg in sys.argv[1:]:
723
 
    if cache[pkg].isInstalled:
724
 
      cache[pkg].markDelete()
 
723
    if cache[pkg].is_installed:
 
724
      cache[pkg].mark_delete()
725
725
    else:
726
 
      cache[pkg].markInstall()
 
726
      cache[pkg].mark_install()
727
727
  cache.commit(fp,ip)
728
728
  gtk.main()
729
729
  sys.exit(0)