Update vendored aur

This commit is contained in:
Jguer committed 2018-05-31 09:23:20 +01:00
1 parent f186bd1de3
commit b5715de4fd
2 files changed
+5 -4

No files matched your search

Generated
+2 -2
View File
@@ -5,13 +5,13 @@
branch = "master"
name = "github.com/jguer/go-alpm"
packages = ["."]
revision = "525cfc02951f197145144587c42d51baac160eb7"
revision = "f09b14fad0ccb0df7e5b699da8bcf3b45db4d0ab"
[[projects]]
branch = "master"
name = "github.com/mikkeloscar/aur"
packages = ["."]
revision = "9050804dc7d471393053322aaaa40428fbd32de3"
revision = "837b260b8e90895c45737e2e72313fe5bce6f2c4"
[[projects]]
branch = "master"
+3 -2
View File
@@ -7,7 +7,8 @@ import (
"net/url"
)
const aurURL = "https://aur.archlinux.org/rpc.php?"
//AURURL is the base string from which the query is built
var AURURL = "https://aur.archlinux.org/rpc.php?"
type response struct {
Error string `json:"error"`
@@ -46,7 +47,7 @@ type Pkg struct {
func get(values url.Values) ([]Pkg, error) {
values.Set("v", "5")
resp, err := http.Get(aurURL + values.Encode())
resp, err := http.Get(AURURL + values.Encode())
if err != nil {
return nil, err
}