Support source URLs that contain ?

Since pacman 5.1 makepkg supports  ? to signal some stuffg in
a similar way to #. Cut this out so URLs with ? no longer fail.
This commit is contained in:
morganamilo 2018-07-04 15:29:54 +01:00
parent b46b005ed7
commit b46b111c07
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

2
vcs.go
View file

@ -97,6 +97,8 @@ func parseSource(source string) (url string, branch string, protocols []string)
branch = "HEAD"
}
url = strings.Split(url, "?")[0]
return
}