Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix download link probing (#33, #34) #38

Merged
merged 1 commit into from

4 participants

@ladios

Update number is no longer part of the URL of the current release page.
This patch makes the script downloads the current release page first,
and then tries to find a matching version. If not found, then looks for
it in the archive page.

@ladios ladios Fix download link probing (#33, #34)
Update number is no longer part of the URL of the current release page.
This patch makes the script downloads the current release page first,
and then tries to find a matching version. If not found, then looks for
it in the archive page.
d745907
@tomcjohn

Thanks for posting this patch, my own hacking was getting me no closer to a solution for this. :)

This patch worked for me.

@tomcjohn

Just to clarify, this got me past my first problem but then failed on a later step.

Last few lines of oab-java.sh.log are:

: # fix permissions
find x64-jdk -name '.properties' -o -name '.xml' | xargs chmod 644
touch unpack-x64-stamp
rm -rf jce
unzip -q jce_policy-6.zip
unzip: cannot find or open jce_policy-6.zip, jce_policy-6.zip.zip or jce_policy-6.zip.ZIP.
make: *** [unpack-jce-stamp] Error 9
dpkg-buildpackage: error: debian/rules build gave error exit status 2
17054's retcode: 2
success

I've manually downloaded jce_policy-6.zip (as per instructions in rraptorr README) and placed it both in /var/local/oab/pkg and in the working directory but neither seem to do the trick. I have absolutely no debian nouse so I may have to give up at this point. :)

@ladios
@flexiondotorg flexiondotorg merged commit 0ea2c92 into from
@robbkidd

I had to revert back to this URL form (${JAVA_VER}u${JAVA_UPD}) to get things working yesterday.

@ladios ladios deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 13, 2012
  1. @ladios

    Fix download link probing (#33, #34)

    ladios authored
    Update number is no longer part of the URL of the current release page.
    This patch makes the script downloads the current release page first,
    and then tries to find a matching version. If not found, then looks for
    it in the archive page.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 6 deletions.
  1. +6 −6 oab-java.sh
View
12 oab-java.sh
@@ -436,12 +436,12 @@ pid=$!;progress $pid
# See if the Java version is on the download frontpage, otherwise look for it in
# the previous releases page.
-DOWNLOAD_INDEX=`grep -P -o "/technetwork/java/javase/downloads/jdk-${JAVA_VER}u${JAVA_UPD}-downloads-\d+\.html" /tmp/oab-index.html | uniq`
-if [ -n "${DOWNLOAD_INDEX}" ]; then
- ncecho " [x] Getting current release download page "
- wget http://www.oracle.com/${DOWNLOAD_INDEX} -O /tmp/oab-download.html >> "$log" 2>&1 &
- pid=$!;progress $pid
-else
+DOWNLOAD_INDEX=`grep -P -o "/technetwork/java/javase/downloads/jdk${JAVA_VER}-downloads-\d+\.html" /tmp/oab-index.html | uniq`
+ncecho " [x] Getting current release download page "
+wget http://www.oracle.com/${DOWNLOAD_INDEX} -O /tmp/oab-download.html >> "$log" 2>&1 &
+pid=$!;progress $pid
+DOWNLOAD_FOUND=`grep "jdk-${JAVA_VER}u${JAVA_UPD}-linux-i586\." /tmp/oab-download.html`
+if [ -z "${DOWNLOAD_FOUND}" ]; then
ncecho " [x] Getting previous releases download page "
if [ "${JAVA_UPSTREAM}" == "sun-java6" ]; then
wget http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html -O /tmp/oab-download.html >> "$log" 2>&1 &
Something went wrong with that request. Please try again.