From d6a99a4b2f9691f70fe72fc05631fb9dc2768b29 Mon Sep 17 00:00:00 2001 From: Chalapala RaghavendraReddy Date: Sat, 4 Jan 2025 15:02:37 +0530 Subject: [PATCH] removed commented code --- src/ArtifactoryUploader/PackageUploadHelper.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ArtifactoryUploader/PackageUploadHelper.cs b/src/ArtifactoryUploader/PackageUploadHelper.cs index 9a64bfbb..7a978037 100644 --- a/src/ArtifactoryUploader/PackageUploadHelper.cs +++ b/src/ArtifactoryUploader/PackageUploadHelper.cs @@ -733,8 +733,6 @@ public static string GetCopyURL(ComponentsToArtifactory component) url = $"{component.JfrogApi}{ApiConstant.CopyPackageApi}{component.SrcRepoPathWithFullName}" + $"?to=/{component.DestRepoName}/{component.Path}/{component.PypiOrNpmCompName}"; - // url = $"{component.JfrogApi}{ApiConstant.CopyPackageApi}{component.SrcRepoName}/{component.Name}/-/{component.PackageName}-{component.Version}" + - //$"{ApiConstant.NpmExtension}?to=/{component.DestRepoName}/{component.Name}/-/{component.PackageName}-{component.Version}{ApiConstant.NpmExtension}"; } else if (component.ComponentType == "NUGET") { @@ -777,9 +775,7 @@ public static string GetMoveURL(ComponentsToArtifactory component) { url = $"{component.JfrogApi}{ApiConstant.MovePackageApi}{component.SrcRepoPathWithFullName}" + $"?to=/{component.DestRepoName}/{component.Path}/{component.PypiOrNpmCompName}"; - - // url = $"{component.JfrogApi}{ApiConstant.MovePackageApi}{component.SrcRepoName}/{component.Name}/-/{component.PackageName}-{component.Version}" + - //$"{ApiConstant.NpmExtension}?to=/{component.DestRepoName}/{component.Name}/-/{component.PackageName}-{component.Version}{ApiConstant.NpmExtension}"; + } else if (component.ComponentType == "NUGET") { @@ -827,8 +823,7 @@ private static string GetPackagePath(ComponentsToArtifactory component, AqlResul else { return $"{component.Name}/-"; - } - + } case "CONAN" when aqlResult != null: string path = aqlResult.Path;