Bug#634089: jh_manifest causes CRC error
tmancill at debian.org
Fri Jan 6 21:26:08 UTC 2012
Thank you for in-depth look into this bug. Niels or Matthew, any
concerns with me preparing an upload?
On 01/05/2012 08:14 PM, Wookey wrote:
> This seems to me to be a serious problem blocking all
> java-helper-using packages
> So, I took a look at what's going on and found the following:
> We can fix it by explicitly removing and recreating it:
> verbose_print("Updating manifest in $jar");
> $zip->removeMember( 'META-INF/MANIFEST.MF' ) unless($new_manifest);
> $zip->removeMember( 'META-INF/' );
> $mem = $zip->addString($var, 'META-INF/MANIFEST.MF');
> $zip->addDirectory( 'META-INF/' );
> # This on the other hand may fail.
> $zip->overwrite() == AZ_OK or error("Writing modified jar ($jar) failed$
> which I hope is an acceptable fix. Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 900 bytes
Desc: OpenPGP digital signature
More information about the pkg-java-maintainers