~mvo/update-manager/release-notes-markup

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgrade.py

  • Committer: Michael Vogt
  • Date: 2005-12-07 11:38:19 UTC
  • Revision ID: egon@top-20051207113819-ad99f5508d1ecfd2
* various cosmetic fixes
* set debconf/apt-listchanges frontends to gtk
* updated readme

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        def start(self):
90
90
            self.progress.show()
91
91
            self.progress.set_fraction(0)
 
92
            self.status.show()
92
93
        def stop(self):
93
94
            self.progress.hide()
94
95
            self.status.hide()
 
96
            self.status.hide()
95
97
        def pulse(self):
96
98
            # FIXME: move the status_str and progress_str into python-apt
97
99
            # (python-apt need i18n first for this)
132
134
            # to default to gtk frontends, also add support for the timeout
133
135
            # of the terminal (to display something useful then)
134
136
            # -> longer term, move this code into python-apt 
135
 
            self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd]
 
137
            self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd,
 
138
                        "DEBIAN_FRONTEND=gnome",
 
139
                        "APT_LISTCHANGES_FRONTEND=gtk"]
136
140
        def fork(self):
137
141
            return self.term.forkpty(envv=self.env)
138
142
        def child_exited(self, term, pid, status):
143
147
                self.updateInterface()
144
148
            return self.apt_status
145
149
        def finishUpdate(self):
146
 
            pass
 
150
            self.progress.hide()
 
151
            self.label_status.hide()
147
152
        def updateInterface(self):
148
153
            InstallProgress.updateInterface(self)
149
154
            self.progress.set_fraction(self.percent/100.0)