Browse Source

Done download repos on google code

pull/103/head
Unknown 12 years ago
parent
commit
53a37e6504
  1. 5
      doc/google.go

5
doc/google.go

@ -38,16 +38,15 @@ func getGoogleDoc(client *http.Client, match map[string]string, installRepoPath
} }
var installPath string var installPath string
projectPath := GetProjectPath(nod.ImportPath)
if nod.ImportPath == nod.DownloadURL { if nod.ImportPath == nod.DownloadURL {
suf := "." + nod.Value suf := "." + nod.Value
if len(suf) == 1 { if len(suf) == 1 {
suf = "" suf = ""
} }
projectPath := expand("code.google.com/p/{repo}{dot}{subrepo}{dir}", match)
installPath = installRepoPath + "/" + projectPath + suf installPath = installRepoPath + "/" + projectPath + suf
nod.ImportPath = projectPath
} else { } else {
installPath = installRepoPath + "/" + nod.ImportPath installPath = installRepoPath + "/" + projectPath
} }
// Remove old files. // Remove old files.

Loading…
Cancel
Save