2012-10-12 06:07:48 |
Fathi Boudra |
description |
File "/usr/lib/python2.7/dist-packages/debian/arfile.py", line 59, in
__index_archive
raise ArError, "Unable to find global header"
debian.arfile.ArError: Unable to find global header
I didn't open a bug 'cause I hoped it would have been easy to fix, but
it turns out it is not.
The problem arises from the "build-info" extraction part in the
builder() method (file hwpack/build.py, at the very end of the file),
and it is only visible running the tests. That function also calls to
be refactored, since it is getting huge and difficult to go through.
When running the tests, we "fake" some Debian packages, using the
DummyFetchedPackage class (file hwpack/testing.py), that returns
something that is not comparable to a deb file; when the builder()
function is called and it opens the deb file to take out the
build-info stuff, the ArFile class reads the content of the deb file,
and there it breaks, because it is missing basically all the
structure. |
File "/usr/lib/python2.7/dist-packages/debian/arfile.py", line 59, in
__index_archive
raise ArError, "Unable to find global header"
debian.arfile.ArError: Unable to find global header
The problem arises from the "build-info" extraction part in the
builder() method (file hwpack/build.py, at the very end of the file),
and it is only visible running the tests. That function also calls to
be refactored, since it is getting huge and difficult to go through.
When running the tests, we "fake" some Debian packages, using the
DummyFetchedPackage class (file hwpack/testing.py), that returns
something that is not comparable to a deb file; when the builder()
function is called and it opens the deb file to take out the
build-info stuff, the ArFile class reads the content of the deb file,
and there it breaks, because it is missing basically all the
structure. |
|