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

« back to all changes in this revision

Viewing changes to UpdateManager/UpdateManager.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2007-02-07 18:02:35 UTC
  • Revision ID: james.westby@ubuntu.com-20070207180235-i0mgzoi54v54ezq7
Tags: 0.56
* added --proposed switch to fetch a release-upgrader from a different
  location (similar to the -proposed pocket in the archive)
* split into update-manager and update-manager-core and support
  cli release upgrades with the later
* added fdsend module to support file descriptor passing over sockets
  this will allow a better seperation between frontend and backend
  in the future

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
from Common.utils import *
66
66
from Common.SimpleGladeApp import SimpleGladeApp
67
 
from DistUpgradeFetcher import DistUpgradeFetcher
 
67
from DistUpgradeFetcher import DistUpgradeFetcherGtk
68
68
import GtkProgress
69
69
 
70
 
from MetaRelease import Dist, MetaRelease
 
70
from Core.MetaRelease import Dist
 
71
from MetaReleaseGObject import MetaRelease
71
72
 
72
73
#import pdb
73
74
 
872
873
 
873
874
  def on_button_dist_upgrade_clicked(self, button):
874
875
      #print "on_button_dist_upgrade_clicked"
875
 
      fetcher = DistUpgradeFetcher(self, self.new_dist)
 
876
      progress = GtkProgress.GtkFetchProgress(self,
 
877
                                              _("Downloading the upgrade "
 
878
                                                "tool"),
 
879
                                              _("The upgrade tool will "
 
880
                                                "guide you through the "
 
881
                                                "upgrade process."))
 
882
      fetcher = DistUpgradeFetcherGtk(new_dist=self.new_dist, parent=self, progress=progress)
876
883
      fetcher.run()
877
884
      
878
885
  def new_dist_available(self, meta_release, upgradable_to):
962
969
 
963
970
  def main(self, options):
964
971
    gconfclient = gconf.client_get_default() 
965
 
    self.meta = MetaRelease(options.devel_release)
 
972
    self.meta = MetaRelease(options.devel_release, options.use_proposed)
966
973
    self.meta.connect("dist_no_longer_supported",self.dist_no_longer_supported)
967
974
 
968
975
    # check if we are interessted in dist-upgrade information