Package: javahelper
Version: 0.7
Severity: normal

Using jh_manifest to update a manifest file hits Bug#489418. The following
jh_depends will therefore not be able to correctly extract the manifest.

A quick workaround:

Index: jaranalyzer-1.2/jh_manifest
===================================================================
--- jaranalyzer-1.2.orig/jh_manifest    2008-07-05 14:24:39.000000000 -0300
+++ jaranalyzer-1.2/jh_manifest 2008-07-05 14:27:31.000000000 -0300
@@ -75,7 +81,11 @@
    if [ -n "`getarg n no-act`" ]; then
       cat "$TEMPDIR/META-INF/MANIFEST.MF"
    else
-      fastjar -u -f "$JAR" -m "$TEMPDIR/META-INF/MANIFEST.MF"
+      # Delete the existing manifest from the jar
+      zip -q -d "$JAR" META-INF/MANIFEST.MF
+
+      # Update the jar with the new manifest
+      ( cd "$TEMPDIR" ; jar umf META-INF/MANIFEST.MF "$JAR" )
    fi
 }

This makes my earlier proposition (see Bug#489214) to unify line-endings useless
as they'll all be CRLF anyway (using sun/icedtea/openjdk jar to update the
manifest).

So you may remove the command that strips CR off line-endings.

I am using zip as there is now way to use the jar program to remove files from
jar files. This introduces an additional dependency into the javahelper program.

If I understand your source code right you are not simply updating the manifest
from /package/.manifest as you want to be able to completely replace manifest
entries, right? Otherwise it would certainly be much easier to simply update the
manifest rather than removing/re-adding it.


-- System Information:
n/a


-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to