| Feature patch update [message #327101] | 
Wed, 09 April 2008 11:07  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi , 
If I try to apply a patch to a feature that has previously been patched , I  
get a message from the update site search that says no updates could be  
found.  The previous patch is called myfeature.patch_<some unique qualifier>  
, my new patch is called myfeature.patch_<some unique qualifier>.  It seems  
the update code does not like patches to be applied on top of patches of the  
same name , it only looks at their id not version: 
 
This is from UpdateQuery#collectValidHits() 
if (hit.isPatch()) { 
 
  IFeature patch = job.getFeature(); 
 
  // Do not add the patch if already installed 
 
 IFeature[] sameId = UpdateUtils.getInstalledFeatures(patch, false);    <--   
It looks here for features of same name 
 
 if (sameId.length==0) {    <-- Fails here 
 
   if (filter.accept(patch)) 
 
    collector.accept(patch); 
 
} 
 
} 
 
Is this a rule by eclipse to not allow multiple patches of the same name to  
be applied?  Its hard to find the correct doc on this.  I tried renaming the  
new patch id to a different name , and it succeeds.  Has anyone run into  
this before?  Thanks in advance.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03644 seconds