aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 17:34:09 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 17:34:41 -0800
commitc7296cf1f21104b15d9cfe931416245768b484e3 (patch)
tree83098ab06369ad55f61e06ca56ca15694f16d47d
parent81ab439b4884b93f862ebd17da1e65d8d8d9bd70 (diff)
downloadvcpkg-c7296cf1f21104b15d9cfe931416245768b484e3.tar.gz
vcpkg-c7296cf1f21104b15d9cfe931416245768b484e3.zip
[FetchDependency] Print out text when downloading/extracting
-rw-r--r--scripts/fetchDependency.ps14
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1
index 168c2359e..e4cab124c 100644
--- a/scripts/fetchDependency.ps1
+++ b/scripts/fetchDependency.ps1
@@ -75,7 +75,9 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
throw "Unknown program requested"
}
+ Write-Host "Downloading $Dependency..."
vcpkgDownloadFile $url $downloadPath
+ Write-Host "Downloading $Dependency has completed successfully."
$downloadedFileHash = vcpkgGetSHA256 $downloadPath
vcpkgCheckEqualFileHash -filePath $downloadPath -expectedHash $expectedDownloadedFileHash -actualHash $downloadedFileHash
@@ -89,7 +91,9 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
if (-not (Test-Path $executableFromDownload))
{
$outFilename = (Get-ChildItem $downloadPath).BaseName
+ Write-Host "Extracting $Dependency..."
vcpkgExtractFile -File $downloadPath -DestinationDir $downloadsDir -outFilename $outFilename
+ Write-Host "Extracting $Dependency has completed successfully."
}
}
elseif($extractionType -eq $ExtractionType_SELF_EXTRACTING_7Z)