From 53a37e6504c1d7c7f33ce8dd9b88459ad265ef74 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 29 Aug 2013 21:02:37 +0800 Subject: [PATCH] Done download repos on google code --- doc/google.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/google.go b/doc/google.go index aafe8a452..f363a3b23 100644 --- a/doc/google.go +++ b/doc/google.go @@ -38,16 +38,15 @@ func getGoogleDoc(client *http.Client, match map[string]string, installRepoPath } var installPath string + projectPath := GetProjectPath(nod.ImportPath) if nod.ImportPath == nod.DownloadURL { suf := "." + nod.Value if len(suf) == 1 { suf = "" } - projectPath := expand("code.google.com/p/{repo}{dot}{subrepo}{dir}", match) installPath = installRepoPath + "/" + projectPath + suf - nod.ImportPath = projectPath } else { - installPath = installRepoPath + "/" + nod.ImportPath + installPath = installRepoPath + "/" + projectPath } // Remove old files.