Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2008-04-28 17:03:46 -0400
committerPascal Rapicault2008-04-28 17:03:46 -0400
commit3e2a2dcaf7e0109f1742da53409e56ec35efeb9c (patch)
tree96dcbcb00fa4a343523fbfe389019bc6a1e2552c /bundles/org.eclipse.equinox.p2.directorywatcher
parent383880cc96d859cc06cbc14ce9851322ee9f4123 (diff)
downloadrt.equinox.p2-3e2a2dcaf7e0109f1742da53409e56ec35efeb9c.tar.gz
rt.equinox.p2-3e2a2dcaf7e0109f1742da53409e56ec35efeb9c.tar.xz
rt.equinox.p2-3e2a2dcaf7e0109f1742da53409e56ec35efeb9c.zip
Bug 224734 - Features not located in a features folder should be ignored
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 5dd3ba991..b890a5e2c 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() && new File(file, "feature.xml").exists(); //$NON-NLS-1$
+ return file.isDirectory() && file.getParentFile() != null && file.getParentFile().equals("features") && new File(file, "feature.xml").exists(); //$NON-NLS-1$ //$NON-NLS-2$
}
/* (non-Javadoc)

Back to the top