Sync eng/common directory with azure-sdk-tools repository (#240)
This commit is contained in:
parent
1c9b932b57
commit
34468b6e46
@ -6,7 +6,6 @@ param (
|
||||
# used by VerifyPackages
|
||||
$artifactLocation, # the root of the artifact folder. DevOps $(System.ArtifactsDirectory)
|
||||
$workingDirectory, # directory that package artifacts will be extracted into for examination (if necessary)
|
||||
[ValidateSet("Nuget","NPM","PyPI","Maven")]
|
||||
$packageRepository, # used to indicate destination against which we will check the existing version.
|
||||
# valid options: PyPI, Nuget, NPM, Maven, C
|
||||
# used by CreateTags
|
||||
|
||||
@ -106,7 +106,7 @@ function Extract-PythonPkgProps ($pkgPath, $serviceName, $pkgName)
|
||||
{
|
||||
$setupLocation = $pkgPath.Replace('\','/')
|
||||
pushd $RepoRoot
|
||||
$setupProps = (python -c "import scripts.devops_tasks.common_tasks; obj=scripts.devops_tasks.common_tasks.parse_setup('$setupLocation'); print('{0},{1}'.format(obj[0], obj[1]));") -split ","
|
||||
$setupProps = (python -c "import sys; import os; sys.path.append(os.path.join('scripts', 'devops_tasks')); from common_tasks import parse_setup; obj=parse_setup('$setupLocation'); print('{0},{1}'.format(obj[0], obj[1]));") -split ","
|
||||
popd
|
||||
if (($setupProps -ne $null) -and ($setupProps[0] -eq $pkgName))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user