Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

added dependency="true" where missing #4585

Merged
merged 1 commit into from
Nov 18, 2017

Conversation

kaikreuzer
Copy link
Contributor

Signed-off-by: Kai Kreuzer kai@openhab.org

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer
Copy link
Contributor Author

Please allow me to self-merge this very small fix - thanks!

@kaikreuzer kaikreuzer merged commit 20e7813 into eclipse-archived:master Nov 18, 2017
@kaikreuzer kaikreuzer deleted the featdep branch November 18, 2017 21:56
@@ -177,7 +177,7 @@
<feature name="esh-tp-serial" version="${project.version}">
<capability>esh.tp;feature=serial;version=3.12.0</capability>

<bundle>mvn:org.openhab/nrjavaserial/3.12.0.OH</bundle>
<bundle dependency="true">mvn:org.openhab/nrjavaserial/3.12.0.OH</bundle>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct. If you mark this bundle as dependency="true" you have to add a special requirement.
The feature esh-tp-serial is already marked with dependency="true" and so installed if necessary only.
But if I install esh-tp-serial manually because I want the serial TP feature to be installed, also the bundle should be installed. So, if you don't want to be to strict about the bundle itself, you need to add at least the requirement for the specific package that should be available.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I tried to align it with the rest and we e.g. have it the same way for esh-tp-apache-commons, esh-tp-httpclient and some others. But I have to admit that I didn't really yet get the meaning&effect of dependency=true on bundles. Are the dependent bundles only transitive dependencies that will be there anyhow? Or what makes the difference and how should it be used?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TP feature file is not as clean as it should be at the moment. So okay for me to keep it this way for the moment.
I will try to add a summary about that feature file itself, my initial intention and what I think we should do. Will ping you as soon as I will find a time slot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants