[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.6-34-g40de43b
Ritesh Raj Sarraf
rrs at researchut.com
Mon Mar 15 12:04:04 UTC 2010
The following commit has been merged in the master branch:
commit ceaaa641c7ceb0adff121c77c21ffdead316b139
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date: Fri Mar 12 11:16:59 2010 +0530
On 401, skip it but don't do an exit
diff --git a/apt_offline_core/AptOfflineCoreLib.py b/apt_offline_core/AptOfflineCoreLib.py
index 2ec6b39..6069d86 100644
--- a/apt_offline_core/AptOfflineCoreLib.py
+++ b/apt_offline_core/AptOfflineCoreLib.py
@@ -320,10 +320,11 @@ def errfunc(errno, errormsg, filename):
be well accessible.
This function does the job of behaving accordingly
as per the error codes.'''
- error_codes = [-3, 13, 504, 404, 10060, 104, 101010]
+ error_codes = [-3, 13, 504, 404, 401, 10060, 104, 101010]
# 104, 'Connection reset by peer'
# 504 is for gateway timeout
# 404 is for URL error. Page not found.
+ # 401 is for Restricted pages
# 10060 is for Operation Time out. There can be multiple reasons for this timeout
# 101010 is for socket max retry count
# 10054 is for Socket Timeout. Socket Timeout are seen during network congestion
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list