~evfool/update-manager/fix665173

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewNonInteractive.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:
313
313
 
314
314
  cache = apt.Cache()
315
315
  for pkg in sys.argv[1:]:
316
 
    #if cache[pkg].isInstalled:
 
316
    #if cache[pkg].is_installed:
317
317
    #  cache[pkg].markDelete()
318
318
    #else:
319
 
    cache[pkg].markInstall()
 
319
    cache[pkg].mark_install()
320
320
  cache.commit(fp,ip)
321
321
  time.sleep(2)
322
322
  sys.exit(0)