Bug#504778: PoC of real fix
Pawel Rozanski
rozie at wp.pl
Sat Nov 8 07:56:53 UTC 2008
For JRE: in /usr/share/java-package/sun-j2re.sh
all strings containing "jre-6u"[0-9]"-linux should be changed to
"jre-6u"[0-9][0-9]"-linux and all strings containing
1.6.0+update${archive_name:6:1}${revision} should be changed to
1.6.0+update${archive_name:6:2}${revision} - the same as for version
1.5. That's an ugly version of fix, because we lose one digit update
version number support.
The best way would be to use regexp to match version (but it requires
rewrite'ing everything from scratch I think), or, at least adding one
statement (also applies for other versions e.g. 1.5) to support both one
and two digit update version number:
"jre-6-linux-i586.bin") # SUPPORTED
j2se_version=1.6.0${revision}
j2se_expected_min_size=16 # 16542512 bytes
found=true
;;
"jre-6u"[0-9]"-linux-i586.bin") # SUPPORTED
j2se_version=1.6.0+update${archive_name:6:1}${revision}
j2se_expected_min_size=16 # 16542512 bytes
found=true
;;
"jre-6u"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
j2se_version=1.6.0+update${archive_name:6:2}${revision}
j2se_expected_min_size=16 # 16542512 bytes
found=true
;;
Regards,
Pawel
----------------------------------------------------
World Usability Day już 13.11!
Największa impreza w Polsce na temat usability - eksperci,
dyskusje, warsztaty. Oglądaj transmisję LIVEna
http://klik.wp.pl/?adr=http%3A%2F%2Fwww.wud2008.pl&sid=553
More information about the pkg-java-maintainers
mailing list