[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: best Depends: line for an app that needs Java 5 but prefers Java 6



Hi,

Elliott Hughes said:
> i think you're telling me, as i'd feared, that it isn't really
> possible to do what i want to do. if that's the case, i think i'll
> keep waiting -- at least until sun-java?-jre is in Ubuntu's main --
> and then "Depends:" sun-java6-jre.

Use "Depends: sun-java6-jre | sun-java5-jre": if java6 or java5 is
installed, nothing happens; if none of both is installed, sun-java6-jre
will be installed by default (if the apt rules from the user allow it).
As for the fact that the user will get a better experience with java6, you
can:
- add a "Recommends: sun-java6-jre", whereas I never had the same package
in Depends _and_ Recommends, hence I don't know:
    1. if it's allowed by Policy (check it)
    2. how apt reacts to this (test it)
- add a README.Debian to your package where you describe the enhancements
coming with java6.
- you could also add a small sentence to the long description of the
package, so that the user gets a chance to see the recommendation before
installing the package.

Hope this helps,
Eric

-- 
You don't need to CC me on debian-java, debian-mentors and
pkg-java-maintainers.
Please CC me on other Debian lists.



Reply to: