From b46b111c079a42f8f0014649ec884eceb12f0489 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Wed, 4 Jul 2018 15:29:54 +0100 Subject: [PATCH] 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. --- vcs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcs.go b/vcs.go index 857185d..7e6d726 100644 --- a/vcs.go +++ b/vcs.go @@ -97,6 +97,8 @@ func parseSource(source string) (url string, branch string, protocols []string) branch = "HEAD" } + url = strings.Split(url, "?")[0] + return }