rraptorr updated sun-java6 for update 32. Oracle split out the demos but the link goes to the same download page. This change, or some other change Oracle made to the page breaks the line that sets DOWNLOAD_INDEX.
I changed it to use a Perl-compatible regex (works with Ubuntu 10.04 and up) and output the matched string. It then filters that through uniq to get a single string. "head -1" might have been a better idea but this worked for me.
My first pull request. Be gentle. :-)
change pattern to "new" oracle.com URLs