X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcheck_archive.py;h=896ab1f546d0134eedeae6ce08501c60d3f3e877;hb=c0b45d5a9b783027658d7a537c4e8cdbb4a3aec4;hp=93cc832c1fb0efd41748e894bf607894a20c9c5f;hpb=c78191d7291045156d3a36493a41c7dd7741f7bc;p=dak.git diff --git a/dak/check_archive.py b/dak/check_archive.py index 93cc832c..896ab1f5 100755 --- a/dak/check_archive.py +++ b/dak/check_archive.py @@ -221,11 +221,13 @@ def check_checksums(): # every time we scan the archive. Yet another hack (TM) which can go away # once this is all working if db_sha1sum is not None and db_sha1sum != '': + f.seek(0) sha1sum = apt_pkg.sha1sum(f) if sha1sum != db_sha1sum: utils.warn("**WARNING** sha1sum mismatch for '%s' ('%s' [current] vs. '%s' [db])." % (filename, sha1sum, db_sha1sum)) if db_sha256sum is not None and db_sha256sum != '': + f.seek(0) sha256sum = apt_pkg.sha256sum(f) if sha256sum != db_sha256sum: utils.warn("**WARNING** sha256sum mismatch for '%s' ('%s' [current] vs. '%s' [db])." % (filename, sha256sum, db_sha256sum))