Comment 2 for bug 724994

Revision history for this message
Michael Vogt (mvo) wrote :

Hm, this is confusing:

$ cat test.py
import apt_pkg
import apt_inst
import sys

debfile = sys.argv[1]
control = apt_inst.DebFile(debfile).control.extractdata("control")
sections = apt_pkg.TagSection(control)
print sections["Package"]
egon@top:/tmp$ python test.py brltty_4.2-8ubuntu1_amd64.deb
brltty

what is the output of
$ md5sum /var/cache/apt/archives/brltty_4.2-8ubuntu1_amd64.deb