[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.5-19-g2b1fdf4
Ritesh Raj Sarraf
rrs at researchut.com
Tue Dec 8 10:50:22 UTC 2009
The following commit has been merged in the master branch:
commit 83c842dde6e0be12a8b5c1e85cb37f7d72a7181b
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date: Sat Dec 5 10:54:51 2009 +0530
we support multiple checksums, not just md5
diff --git a/AptOfflineCoreLib.py b/AptOfflineCoreLib.py
index 32f1e19..7e8dc61 100644
--- a/AptOfflineCoreLib.py
+++ b/AptOfflineCoreLib.py
@@ -295,7 +295,7 @@ def stripper(item):
url - The URL
file - The actual package file
size - The file size
- md5_text - The md5 checksum test
+ checksum - The checksum string
and returns them.'''
item = item.split(' ')
@@ -304,10 +304,10 @@ def stripper(item):
size = int(string.rstrip(string.lstrip(''.join(item[2]), chars = "'"), chars="'"))
#INFO: md5 ends up having '\n' with it.
# That needs to be stripped too.
- md5_text = string.rstrip(string.lstrip(''.join(item[3]), chars = "'"), chars = "'")
- md5_text = string.rstrip(md5_text, chars = "\n")
+ checksum = string.rstrip(string.lstrip(''.join(item[3]), chars = "'"), chars = "'")
+ checksum = string.rstrip(checksum, chars = "\n")
- return url, file, size, md5_text
+ return url, file, size, checksum
def errfunc(errno, errormsg, filename):
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list