Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-04-28 22:56:58 -0400
committerSimon Kaegi2008-04-28 22:56:58 -0400
commitb598385ac089337feb0b8af9eabda71ec2e693e0 (patch)
tree9dfb6737eba05bc38c1594f4ca152b7119b3776f /bundles/org.eclipse.equinox.p2.directorywatcher
parentb91a4dae3859836cd3b4273798e26a43b8f1795f (diff)
downloadrt.equinox.p2-b598385ac089337feb0b8af9eabda71ec2e693e0.tar.gz
rt.equinox.p2-b598385ac089337feb0b8af9eabda71ec2e693e0.tar.xz
rt.equinox.p2-b598385ac089337feb0b8af9eabda71ec2e693e0.zip
Compare on file name instead of file objectv20080428-2312
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
index b890a5e2c..ec5ac9299 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
@@ -231,7 +231,7 @@ public class RepositoryListener extends DirectoryChangeListener {
}
boolean isFeature(File file) {
- return file.isDirectory() && file.getParentFile() != null && file.getParentFile().equals("features") && new File(file, "feature.xml").exists(); //$NON-NLS-1$ //$NON-NLS-2$
+ return file.isDirectory() && file.getParentFile() != null && file.getParentFile().getName().equals("features") && new File(file, "feature.xml").exists(); //$NON-NLS-1$ //$NON-NLS-2$
}
/* (non-Javadoc)

Back to the top