Thanks for your bugreport.

The usage of sha256sum() with file objects is generally prefered, so
 apt_pkg.sha256sum(open('Packages.gz')
should work. 

However, there is a bug here somewhere because the string usage should
work as well. It does in my tests for small strings, it might be a
problem in the python<->c++ code with the string length, I'm
investigating that now.

** Changed in: apt (Ubuntu)
   Importance: Undecided => Critical
     Assignee: (unassigned) => Michael Vogt (mvo)
       Status: Confirmed => In Progress

-- 
Hardy release files contain invalid SHA256 signatures.
https://bugs.launchpad.net/bugs/243630
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to