Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Unable to update installable featuresthat are declared in a .product file independent of updatingthe product

Greg Amerson wrote:
> I am having the same problem described in this thread.  Is there a way to
> install features into a build after a product has been created with Tycho?
>  Of course we could use ant and p2 director to perform the install.

This is not possible, but would be a very useful extension of the current functionality. You should create an enhancement describing the use case in Bugzilla, and if possible, provide a patch ;-)  But also just the enhancement request would help.


> Another question... is it possible to generate a repository site that
> contains the updated product, so that it can actually be updated including
> all of the dependent features?

Another build of your project after you have change the product?

Greg Babcock wrote:
> This did not work for me.
> 
> 1.   I removed the a feature A from the .product dependencies and
> performed a build and verified that it was removed from the target
> repository, and the product.
> 
> 2.  I added the feature A as requirement in the <product_id>.p2.inf file
> adjacent to the .product file and performed a build.  Feature A was once
> again installed in the repository, and installed in the product as a
> dependency of the product IU, and not at the root level as required to be
> independently updatable feature.

This is only partially true: The important thing is whether the installed product has a hard or version range requirement to the feature. The instructions in Andrews blog create a version range link, which allow new versions of the feature to be installed.

The drawback of what you can currently achieve with Tycho is that this isn't particularly obvious to the users:
- Check for updates will not report new versions of the feature. For that, it would need to be listed as top-level installed feature.
- IIRC, the feature will be silently updated whenever something else is installed or updated.

So it is possible to update the feature, but I can understand if you would want the feature as top-level feature...  Your requests are all very valid, please open enhancements in Bugzilla.

Regards
Tobias



Back to the top