Bo Ørsted Andresen kirjoitti:
On Monday 22 September 2008 22:25:20 Petteri Räty wrote:If you mean something likebuilt_with_use cat/foo coolfeature || ewarn "bar will be more useful if you rebuild cat/foo with USE=coolfeature"then you can use has_version 'cat/foo[coolfeature]' || ... instead.What does this report if cat/foo does not have coolfeature use flag in some version? Meaning can this support cases which need --missing true.False. If for instance coolfeature was made optional in >=pv you can use logic like: if has_version '>=cat/foo-pv' && ! has_version 'cat/foo[coolfeature]'; then ewarn '...' fi
I think this should cover all the current functionality with built_with_use. So when before EAPI 2 goes live I will commit:
23:29 < zmedico> has EAPI 0 1 || die "build_with_use is only allowed in EAPI 0 or 1"
Unless someone objects with good reasoning of course. Regards, Petteri
signature.asc
Description: OpenPGP digital signature