summaryrefslogtreecommitdiff
path: root/UpdateManager
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-04 15:17:22 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-04 15:17:22 +0200
commit0813eea814baa4f041d3cac07a4a7070cd61cd7c (patch)
tree913e684989043fd7ea2948c59ba024e383258965 /UpdateManager
parent3fa5e46cb1975e47065a584eb1d2e00bf03af651 (diff)
downloadpython-apt-0813eea814baa4f041d3cac07a4a7070cd61cd7c.tar.gz
* improved the error reporting (again)
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/DistUpgradeFetcher.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/UpdateManager/DistUpgradeFetcher.py b/UpdateManager/DistUpgradeFetcher.py
index 1ddc7bca..54823795 100644
--- a/UpdateManager/DistUpgradeFetcher.py
+++ b/UpdateManager/DistUpgradeFetcher.py
@@ -116,11 +116,14 @@ class DistUpgradeFetcher(object):
gpgres = proc.handles['status'].read()
try:
proc.wait()
- except IOError:
+ except IOError,e:
# gnupg returned a problem (non-zero exit)
+ print "exception from gpg: %s", e
return False
if "VALIDSIG" in gpgres:
return True
+ print "invalid result from gpg:"
+ print gpgres
return False
def extractDistUpgrader(self):
@@ -196,27 +199,27 @@ class DistUpgradeFetcher(object):
if not self.showReleaseNotes():
return
if not self.fetchDistUpgrader():
- error(self.parent,
+ error(self.window_main,
_("Failed to fetch"),
_("Fetching the upgrade failed. There may be a network "
"problem. "))
return
if not self.extractDistUpgrader():
- error(self.parent,
+ error(self.window_main,
_("Failed to extract"),
_("Extracting the upgrade failed. There may be a problem "
"with the network or with the server. "))
return
if not self.verifyDistUprader():
- error(self.parent,
+ error(self.window_main,
_("Verfication failed"),
_("Verfing the upgrade failed. There may be a problem "
"with the network or with the server. "))
self.cleanup()
return
if not self.authenticate():
- error(self.parent,
+ error(self.window_main,
_("Authentication failed"),
_("Authenticating the upgrade failed. There may be a problem "
"with the network or with the server. "))