diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-18 17:16:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-18 17:16:06 +0200 |
| commit | c16f7ef52793f5fa6369c149f8a9f1fb5a862a6b (patch) | |
| tree | 96f49d5f90008f9460105ccc55459457bfd9c86a /DistUpgrade | |
| parent | 4514e8883fc10cb6e8b29fe78ede8bef41858a59 (diff) | |
| download | python-apt-c16f7ef52793f5fa6369c149f8a9f1fb5a862a6b.tar.gz | |
* DistUpgrade/DistUpgradeViewGtk.py:
- apply evil hack to work-around bug in the atexit functionality
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 1 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index d0fde352..9a03f288 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -113,6 +113,7 @@ class DistUpgradeControler(object): if not foundToDist: # FIXME: offer to write a new self.sources.list entry + # DONT'T ERROR, write a line with mirror here logging.error("No valid entry found") return self._view.error(_("No valid entry found"), _("While scaning your repository " diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index d8c55763..3236ba14 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -196,6 +196,10 @@ class GtkInstallProgressAdapter(InstallProgress): def fork(self): pid = self.term.forkpty(envv=self.env) + if pid == 0: + # HACK to work around bug in python/vte and unregister the logging + # atexit func in the child + sys.exitfunc = lambda: True return pid def statusChange(self, pkg, percent, status): |
