diff options
author | Andrew Niefer | 2009-10-23 20:15:48 +0000 |
---|---|---|
committer | Andrew Niefer | 2009-10-23 20:15:48 +0000 |
commit | 6cb65bcd1a77ee8bfa220e49782029cb13945889 (patch) | |
tree | 340ab40a7527a50173e900f06f3a966f6b8dc5cb /bundles | |
parent | 239871b250cf25ba578f542198cafb31470ea97d (diff) | |
download | rt.equinox.p2-6cb65bcd1a77ee8bfa220e49782029cb13945889.tar.gz rt.equinox.p2-6cb65bcd1a77ee8bfa220e49782029cb13945889.tar.xz rt.equinox.p2-6cb65bcd1a77ee8bfa220e49782029cb13945889.zip |
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java index cfa96c47a..adb7535d3 100644 --- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java +++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java @@ -116,9 +116,10 @@ public class RecreateRepositoryApplication { ArtifactDescriptor newDescriptor = new ArtifactDescriptor(descriptors[i]); newDescriptor.setProperty(IArtifactDescriptor.ARTIFACT_SIZE, size); newDescriptor.setProperty(IArtifactDescriptor.DOWNLOAD_SIZE, size); - //only set an MD5 if there was one to start with - if (newDescriptor.getProperties().containsKey(IArtifactDescriptor.DOWNLOAD_MD5)) - newDescriptor.setProperty(IArtifactDescriptor.DOWNLOAD_MD5, RepositoryUtilities.computeMD5(artifactFile)); + + String md5 = RepositoryUtilities.computeMD5(artifactFile); + if (md5 != null) + newDescriptor.setProperty(IArtifactDescriptor.DOWNLOAD_MD5, md5); File temp = new File(artifactFile.getParentFile(), artifactFile.getName() + ".pack.gz"); //$NON-NLS-1$ if (temp.exists()) { |