From 3d1a7f316defd061b1404b260f813031ef2aa0a3 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Fri, 15 Nov 2019 16:10:23 -0800 Subject: [PATCH] Allow semantic versions to be passed to NormalizeVersion function --- .../azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/releaseBuild/azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1 b/tools/releaseBuild/azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1 index f36ba7929e7..b5d932d5c3b 100644 --- a/tools/releaseBuild/azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1 +++ b/tools/releaseBuild/azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1 @@ -100,7 +100,6 @@ function SyncGalleryToAzArtifacts { $savedPackages | Out-String | Write-Verbose -Verbose foreach($package in $savedPackages) { - $pkgVersion = NormalizeVersion -version $package.Version $foundMatch = $azArtifactsPackages | Where-Object { $_.Name -eq $package.Name -and (NormalizeVersion -version $_.Version) -eq $pkgVersion } @@ -122,7 +121,7 @@ function SyncGalleryToAzArtifacts { } function NormalizeVersion { - param ([Version] $version) + param ([string] $version) $sVer = if ($version -match "(\d+.\d+.\d+).0") { $matches[1]