Skip to content

Commit

Permalink
Normalize the package name for Doc.Ms readme (#16401)
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Feb 2, 2021
1 parent feaa464 commit 22921fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function Get-python-PackageInfoFromPackageFile ($pkg, $workingDirectory)
$pkg.Basename -match $SDIST_PACKAGE_REGEX | Out-Null

$pkgId = $matches["package"]
$docsReadMeName = $pkgId -replace "^azure-" , ""
$pkgVersion = $matches["versionstring"]

$workFolder = "$workingDirectory$($pkg.Basename)"
Expand Down Expand Up @@ -85,6 +86,7 @@ function Get-python-PackageInfoFromPackageFile ($pkg, $workingDirectory)
Deployable = $forceCreate -or !(IsPythonPackageVersionPublished -pkgId $pkgId -pkgVersion $pkgVersion)
ReleaseNotes = $releaseNotes
ReadmeContent = $readmeContent
DocsReadMeName = $docsReadMeName
}
}

Expand Down Expand Up @@ -240,4 +242,4 @@ function GetExistingPackageVersions ($PackageName, $GroupId=$null)
LogError "Failed to retrieve package versions. `n$_"
return $null
}
}
}

0 comments on commit 22921fd

Please sign in to comment.