flexiondotorg / oab-java6

Create a local 'apt' repository for Sun Java 6 and/or Oracle Java 7 packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to force install a specific version?

kripz opened this issue · comments

Can i specify or modify it to install 6u31 (for example)?

Can i change

JAVA_VER=echo ${DEB_VERSION} | cut -d'.' -f1
JAVA_UPD=echo ${DEB_VERSION} | cut -d'.' -f2 | cut -d'-' -f1

to

JAVA_VER=6
JAVA_UPD=31

Hi,

This is a good idea. You can hard code as kripz did above, but it should be implemented as an argument. Something like

./oab-java.sh -c

Which will list the tags available upstream.

./oab-java.sh -c v6.31

To specify a particular tag to use from upstream.

I don't have the time to add this feature right now, but might do in the future. If anyone cares to contribute a pull request though it would be most welcome :-)

Regards, Martin.

My OP didn't work, it's much more complicated than that.

I hacked up a simple tag option, but I haven't added a way to list available tags. Also, I can't figure out how to tell github to attached the code to this issue, so I'm going to open a new pull request.