Update vendored aur

This commit is contained in:
Jguer 2018-05-31 09:23:20 +01:00
parent f186bd1de3
commit b5715de4fd
No known key found for this signature in database
GPG key ID: 09754DBECF21746F
2 changed files with 5 additions and 4 deletions

4
Gopkg.lock generated
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"

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
}