1
=== modified file 'UpdateManager/Core/DistUpgradeFetcherCore.py'
2
--- UpdateManager/Core/DistUpgradeFetcherCore.py 2011-07-15 15:32:30 +0000
3
+++ UpdateManager/Core/DistUpgradeFetcherCore.py 2011-11-01 13:22:16 +0000
5
f = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeTool)
6
sig = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeToolSig)
7
print "authenticate '%s' against '%s' " % (os.path.basename(f),os.path.basename(sig))
8
- if not self.gpgauthenticate(f, sig):
11
- # we may return False here by default if we want to make a sig
14
+ if self.gpgauthenticate(f, sig):
18
def gpgauthenticate(self, file, signature,
19
keyring='/etc/apt/trusted.gpg'):
21
_("Fetching the upgrade failed. There may be a network "
24
+ if not self.authenticate():
25
+ self.error(_("Authentication failed"),
26
+ _("Authenticating the upgrade failed. There may be a problem "
27
+ "with the network or with the server. "))
30
if not self.extractDistUpgrader():
31
self.error(_("Failed to extract"),
32
_("Extracting the upgrade failed. There may be a problem "
34
"with the network or with the server. "))
37
- if not self.authenticate():
38
- self.error(_("Authentication failed"),
39
- _("Authenticating the upgrade failed. There may be a problem "
40
- "with the network or with the server. "))
44
# check if we can execute, if we run it via sudo we will
45
# not know otherwise, sudo/gksu will not raise a exception