[PATCH] Force symlink resolution in jh_manifest (to fix 626329)
Vincent Fourmond
vincent.fourmond at 9online.fr
Thu May 12 22:46:59 UTC 2011
---
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
--------------050609020609020602020308--
More information about the pkg-java-maintainers
mailing list