I don't know anything about deb packaging, but surely you can specify version numbers in your dependencies. Can't you declare: "sun-java version 1.6.*" OR "openjdk version 6.*"?
Hardcoding in the script is trying to fix a problem that deb is already set up to provide you the answer with. Right?
I don't know anything about deb packaging, but surely you can specify version numbers in your dependencies. Can't you declare: "sun-java version 1.6.*" OR "openjdk version 6.*"?
Hardcoding in the script is trying to fix a problem that deb is already set up to provide you the answer with. Right?