tag 626329 +patch
thanks

  Here's a patch that does the trick. I'm wondering however if the code
should not be moved to jh_classpath rather ?

  Cheers,

        Vincent

-- 
Vincent Fourmond, Debian Developer
http://vince-debian.blogspot.com/

Some pirates achieved immortality by great deeds of cruelty
and derring-do. Some achieved immortality by amassing great
wealth. But the captain had long ago decided that he would,
on the whole, prefer to achieve immortality by not dying.
 -- Terry Pratchet, the Colour of Magic

Vincent, listening to My Own Private Vietnam (Poni Hoax)
>From b5e10edd22390704cfd935a866a70707f9818980 Mon Sep 17 00:00:00 2001
From: Vincent Fourmond <vincent.fourm...@9online.fr>
Date: Fri, 13 May 2011 00:46:59 +0200
Subject: [PATCH] Force symlink resolution in jh_manifest (to fix 626329)

---
 jh_manifest |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/jh_manifest b/jh_manifest
index b9c0ad2..3a835fc 100755
--- a/jh_manifest
+++ b/jh_manifest
@@ -256,6 +256,10 @@ sub update_jar{
     my $dirty = 0;
     my $main;
     my $new_manifest = 0;
+
+    # Work on the target file if it is a symlink:
+    $jar = `readlink -f "$jar"`;
+
     # stringify or $zip will make a call back that fails.
     $zip->read( "$jar" ) == AZ_OK or error("Could not read $jar: $!");
     ($con, $stat) = $zip->contents( 'META-INF/MANIFEST.MF' );
-- 
1.7.5.1

Reply via email to