Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / update-notifier / upgrader-patches / | server ip : 104.21.89.46 your ip : 172.70.80.98 H O M E |
Filename | /usr/share/update-notifier/upgrader-patches/update-manager-downloader-fix2.diff |
Size | 2.02 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 19-Mar-2012 17:25 |
Last accessed | 06-Jul-2025 00:46 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
=== modified file 'UpdateManager/Core/DistUpgradeFetcherCore.py'
--- UpdateManager/Core/DistUpgradeFetcherCore.py 2011-07-15 15:32:30 +0000
+++ UpdateManager/Core/DistUpgradeFetcherCore.py 2011-11-01 13:22:16 +0000
@@ -68,12 +68,9 @@
f = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeTool)
sig = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeToolSig)
print "authenticate '%s' against '%s' " % (os.path.basename(f),os.path.basename(sig))
- if not self.gpgauthenticate(f, sig):
- return False
-
- # we may return False here by default if we want to make a sig
- # mandatory
- return True
+ if self.gpgauthenticate(f, sig):
+ return True
+ return False
def gpgauthenticate(self, file, signature,
keyring='/etc/apt/trusted.gpg'):
@@ -249,6 +246,12 @@
_("Fetching the upgrade failed. There may be a network "
"problem. "))
return
+ if not self.authenticate():
+ self.error(_("Authentication failed"),
+ _("Authenticating the upgrade failed. There may be a problem "
+ "with the network or with the server. "))
+ self.cleanup()
+ return
if not self.extractDistUpgrader():
self.error(_("Failed to extract"),
_("Extracting the upgrade failed. There may be a problem "
@@ -261,12 +264,6 @@
"with the network or with the server. "))
self.cleanup()
return
- if not self.authenticate():
- self.error(_("Authentication failed"),
- _("Authenticating the upgrade failed. There may be a problem "
- "with the network or with the server. "))
- self.cleanup()
- return
try:
# check if we can execute, if we run it via sudo we will
# not know otherwise, sudo/gksu will not raise a exception
--- UpdateManager/Core/DistUpgradeFetcherCore.py 2011-07-15 15:32:30 +0000
+++ UpdateManager/Core/DistUpgradeFetcherCore.py 2011-11-01 13:22:16 +0000
@@ -68,12 +68,9 @@
f = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeTool)
sig = self.tmpdir+"/"+os.path.basename(self.new_dist.upgradeToolSig)
print "authenticate '%s' against '%s' " % (os.path.basename(f),os.path.basename(sig))
- if not self.gpgauthenticate(f, sig):
- return False
-
- # we may return False here by default if we want to make a sig
- # mandatory
- return True
+ if self.gpgauthenticate(f, sig):
+ return True
+ return False
def gpgauthenticate(self, file, signature,
keyring='/etc/apt/trusted.gpg'):
@@ -249,6 +246,12 @@
_("Fetching the upgrade failed. There may be a network "
"problem. "))
return
+ if not self.authenticate():
+ self.error(_("Authentication failed"),
+ _("Authenticating the upgrade failed. There may be a problem "
+ "with the network or with the server. "))
+ self.cleanup()
+ return
if not self.extractDistUpgrader():
self.error(_("Failed to extract"),
_("Extracting the upgrade failed. There may be a problem "
@@ -261,12 +264,6 @@
"with the network or with the server. "))
self.cleanup()
return
- if not self.authenticate():
- self.error(_("Authentication failed"),
- _("Authenticating the upgrade failed. There may be a problem "
- "with the network or with the server. "))
- self.cleanup()
- return
try:
# check if we can execute, if we run it via sudo we will
# not know otherwise, sudo/gksu will not raise a exception