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? -- Vuze/Azureus openjdk hardcoded to executeable https://bugs.launchpad.net/bugs/348109 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs