Quellcode durchsuchen

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 vor 7 Jahren
Ursprung
Commit
501e777aa0
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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")
 			}