From 67105df97422275a005e73abbd9f825615a11fc9 Mon Sep 17 00:00:00 2001 From: Tobias Oberlies Date: Tue, 28 Feb 2012 19:10:58 +0100 Subject: 372788 Let artifact repository create ArtifactDescriptor instances --- .../src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundles/org.eclipse.equinox.p2.publisher') diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java index 09aa21b7b..8fa15b253 100644 --- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java +++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java @@ -182,8 +182,8 @@ public abstract class AbstractPublisherAction implements IPublisherAction { } protected IArtifactDescriptor createPack200ArtifactDescriptor(IArtifactKey key, File pathOnDisk, String installSize) { + ArtifactDescriptor result = (ArtifactDescriptor) PublisherHelper.createArtifactDescriptor(info, key, pathOnDisk); //TODO this size calculation is bogus - ArtifactDescriptor result = new ArtifactDescriptor(key); if (pathOnDisk != null) { result.setProperty(IArtifactDescriptor.ARTIFACT_SIZE, installSize); // TODO - this is wrong but I'm testing a work-around for bug 205842 -- cgit v1.2.3