* Add java6-{runtime|sdk|...} to the provides line in generated packages Closes: #684993
* Add java6-{runtime|sdk|...} to the provides line in generated packages Closes: #684993
* Drop installation debconf note Closes: #685082
+ * Correct handling of amd64 in roacle-jdk6.1->4 and improve error message when used with unknown archives
[Emmanuel Bourg]
* Improved detection of the JRE/JDK version (supports 2 digits Java 7 updates)
j2se_detect_oracle_j2re=oracle_j2re_detect
oracle_j2re_detect() {
- if [[ $archive_name =~ jre-([0-9]+)u([0-9]+)-linux-(i586|x64)\.(bin|tar\.gz) ]]
+ if [[ $archive_name =~ jre-([0-9]+)u([0-9]+)-linux-(i586|x64|amd64)\.(bin|tar\.gz) ]]
then
j2se_release=${BASH_REMATCH[1]}
j2se_update=${BASH_REMATCH[2]}
if [[ "$j2se_arch" != "i586" ]]; then compatible=0; fi
;;
amd64|x86_64-linux-gnu)
- if [[ "$j2se_arch" != "x64" ]]; then compatible=0; fi
+ if [[ "$j2se_arch" != "x64" && "$j2se_arch" != "amd64" ]]; then compatible=0; fi
;;
esac
j2se_detect_oracle_j2sdk=oracle_j2sdk_detect
oracle_j2sdk_detect() {
- if [[ $archive_name =~ jdk-([0-9]+)u([0-9]+)-linux-(i586|x64)\.(bin|tar\.gz) ]]
+ if [[ $archive_name =~ jdk-([0-9]+)u([0-9]+)-linux-(i586|x64|amd64)\.(bin|tar\.gz) ]]
then
j2se_release=${BASH_REMATCH[1]}
j2se_update=${BASH_REMATCH[2]}
if [[ "$j2se_arch" != "i586" ]]; then compatible=0; fi
;;
amd64|x86_64-linux-gnu)
- if [[ "$j2se_arch" != "x64" ]]; then compatible=0; fi
+ if [[ "$j2se_arch" != "x64" && "$j2se_arch" != "amd64" ]]; then compatible=0; fi
;;
esac
echo
if [[ -z "$j2se_found" ]]; then
- echo "No matching plugin was found."
+ echo "No matching packaging method was found for $archive_name. Please make sure you are using a tar.gz or self-extracting archive"
fi