8000 Allow semantic versions to be passed to `NormalizeVersion` fun… (#11087) · PowerShell/PowerShell@8ff29dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ff29dd

Browse files
adityapatwardhanTravisEz13
authored andcommitted
Allow semantic versions to be passed to NormalizeVersion fun… (#11087)
1 parent 2579c00 commit 8ff29dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/releaseBuild/azureDevOps/AzArtifactFeed/SyncGalleryToAzArtifacts.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ function SyncGalleryToAzArtifacts {
100100
$savedPackages | Out-String | Write-Verbose -Verbose
101101

102102
foreach($package in $savedPackages) {
103-
104103
$pkgVersion = NormalizeVersion -version $package.Version
105104
$foundMatch = $azArtifactsPackages | Where-Object { $_.Name -eq $package.Name -and (NormalizeVersion -version $_.Version) -eq $pkgVersion }
106105

@@ -122,7 +121,7 @@ function SyncGalleryToAzArtifacts {
122121
}
123122

124123
function NormalizeVersion {
125-
param ([Version] $version)
124+
param ([string] $version)
126125

127126
$sVer = if ($version -match "(\d+.\d+.\d+).0") {
128127
$matches[1]

0 commit comments

Comments
 (0)
0