瀏覽代碼

Fix -G being unable to download split packages

this is a quick fix for now so it can be pushed out for the next
release. -G really should get the fancy split package printing that -S
now has `libc++ (libc++ libc++abi)`.
morganamilo 7 年之前
父節點
當前提交
501e777aa0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      download.go

+ 2 - 2
download.go

@@ -91,9 +91,9 @@ func getPkgbuildfromABS(pkgN string, path string) (err error) {
 		if err == nil {
 			var url string
 			if db.Name() == "core" || db.Name() == "extra" {
-				url = "https://projects.archlinux.org/svntogit/packages.git/snapshot/packages/" + pkg.Name() + ".tar.gz"
+				url = "https://projects.archlinux.org/svntogit/packages.git/snapshot/packages/" + pkg.Base() + ".tar.gz"
 			} else if db.Name() == "community" {
-				url = "https://projects.archlinux.org/svntogit/community.git/snapshot/community-packages/" + pkg.Name() + ".tar.gz"
+				url = "https://projects.archlinux.org/svntogit/community.git/snapshot/community-packages/" + pkg.Base() + ".tar.gz"
 			} else {
 				return fmt.Errorf("Not in standard repositories")
 			}