跑" gclient"命令在cmd.exe中显示" cipd lock在延迟后再次尝试"

时间:2017-10-31 11:52:40

标签: chromium

我想下载Chromium源代码,但根据官方文档:download" depot_tools"并将其路径添加到环境变量" PATH"。跑完" gclient"在cmd.exe中的命令,它显示以下消息:

"Bootstrapping cipd client for windows-386 from https://chrome-infra-packages.ap
pspot.com/client?platform=windows-386&version=git_revision:d2677a4477e59cb7de00
f1fb8a00e96b1aaeb927..."

并等待几秒钟显示" CIPD锁定被保持,在延迟后再次尝试..." in" chromium / chromium / tools / depot_tools / master /。 / cipd.ps1"有代码:

while ($true) 
{
   $cipd_lock_file = $false
   try {
   $cipd_lock_file = [IO.File]::OpenWrite($cipd_lock)

   if (!(Test-Path $client)) {
      echo "Bootstrapping cipd client for $plat-$arch from $url..."

      $wc = (New-Object System.Net.WebClient)
      $wc.Headers.add('User-Agent', $user_agent)
      $wc.DownloadFile($url, $client)
    }
    break
    } catch {
        echo "CIPD lock is held, trying again after delay..."
        Start-Sleep -s 1
    } finally {
    if ($cipd_lock_file) {
       $cipd_lock_file.close()
    }
  }
}

但我无法理解。我的操作系统是Windows 7 64位。谢谢!

0 个答案:

没有答案