commit | d7050775b38db437318a71c2ca8fccede1388da4 | [log] [tgz] |
---|---|---|
author | David Morgan Spenser Savage <dsavage@apache.org> | Mon Aug 03 08:31:47 2009 +0000 |
committer | David Morgan Spenser Savage <dsavage@apache.org> | Mon Aug 03 08:31:47 2009 +0000 |
tree | 031aea92ea1dc3b3d81b78cdd5c7ecb4cd075ec6 | |
parent | 07216c1fcf5a2785be656f30f4b57192686a619b [diff] |
check parent dir exists before calling mkdirs to prevent invalid exception message FELIX-1442 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@800254 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/common/obr/src/org/apache/felix/sigil/obr/AbstractOBRBundleRepository.java b/sigil/common/obr/src/org/apache/felix/sigil/obr/AbstractOBRBundleRepository.java index 3c30d36..b7ffc45 100644 --- a/sigil/common/obr/src/org/apache/felix/sigil/obr/AbstractOBRBundleRepository.java +++ b/sigil/common/obr/src/org/apache/felix/sigil/obr/AbstractOBRBundleRepository.java
@@ -82,7 +82,7 @@ c.connect(); in = c.getInputStream(); File file = getObrlCache(); - if ( !file.getParentFile().mkdirs() ) + if ( !file.getParentFile().exists() && !file.getParentFile().mkdirs() ) { throw new IOException( "Failed to create obr cache dir " + file.getParentFile() ); }