Bug#634089: jh_manifest causes CRC error
Matthew Johnson
mjj29 at debian.org
Sat Jan 7 10:40:16 UTC 2012
On Fri Jan 06 13:26, tony mancill wrote:
> Thank you for in-depth look into this bug. Niels or Matthew, any
> concerns with me preparing an upload?
Go right ahead
Thanks,
Matt
>
> Thanks,
> tony
>
> 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:
>
> <--snip-->
>
> > 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');
> > $mem->desiredCompressionMethod(COMPRESSION_DEFLATED);
> > $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...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120107/08911e12/attachment.pgp>
More information about the pkg-java-maintainers
mailing list