diff options
author | DJ Houghton | 2011-01-28 18:14:37 +0000 |
---|---|---|
committer | DJ Houghton | 2011-01-28 18:14:37 +0000 |
commit | ea4c70236c31bec52114376fc0cec7d41efc4881 (patch) | |
tree | 63584db0c9b491dd85218469a02418b8824fb8ca /bundles | |
parent | ae116eabee98122e65bcf0ca5ad01a519c6cfc75 (diff) | |
download | rt.equinox.p2-ea4c70236c31bec52114376fc0cec7d41efc4881.tar.gz rt.equinox.p2-ea4c70236c31bec52114376fc0cec7d41efc4881.tar.xz rt.equinox.p2-ea4c70236c31bec52114376fc0cec7d41efc4881.zip |
Bug 331893 - Use mkdirs workaround also in case of file based downloaded bundles
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java index 635688bd8..37dc95e7f 100644 --- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java +++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2010 IBM Corporation and others. + * Copyright (c) 2007, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -780,7 +780,7 @@ public class SimpleArtifactRepository extends AbstractArtifactRepository impleme } else { // file based File parent = outputFile.getParentFile(); - parent.mkdirs(); + mkdirs(parent); if (!parent.isDirectory()) throw failedWrite(new IOException(NLS.bind(Messages.sar_failedMkdir, parent.toString()))); target = new FileOutputStream(file); |