/**\r
* Computes whether the given addon package is a suitable update for the current package.\r
* The base method checks the class type.\r
- * The addon package also tests that the name is the same and the revision number is greater.\r
+ * The addon package also tests that the name+vendor is the same and\r
+ * the revision number is greater.\r
* <p/>\r
* An update is just that: a new package that supersedes the current one. If the new\r
* package has the same revision as the current one, it's not an update.\r
}\r
\r
AddonPackage newPkg = (AddonPackage) replacementPackage;\r
- return newPkg.getName().equalsIgnoreCase(this.getName()) &&\r
- newPkg.getRevision() > this.getRevision();\r
+\r
+ String thisId = getName() + "+" + getVendor(); //$NON-NLS-1$\r
+ String newId = newPkg.getName() + "+" + newPkg.getVendor(); //$NON-NLS-1$\r
+\r
+ return thisId.equalsIgnoreCase(newId) &&\r
+ newPkg.getRevision() > this.getRevision();\r
}\r
}\r