mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Update vendored dependencies
This commit is contained in:
parent
ebc4ef1c33
commit
c0f73c4f31
14
Gopkg.lock
generated
14
Gopkg.lock
generated
@ -3,25 +3,35 @@
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:5f709618dc8a0ff9221d3685c95d69ed7d80ca94e58f3483f5d9bdefb4e6bb25"
|
||||
name = "github.com/Morganamilo/go-srcinfo"
|
||||
packages = ["."]
|
||||
pruneopts = "NUT"
|
||||
revision = "368edc79b2c53cd9c065818fd4e65843ef3e9e11"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:7681cb2a269451c1a0f781e1241ce0bd8e515d5e9a3b12f67fd768bafe08e682"
|
||||
name = "github.com/jguer/go-alpm"
|
||||
packages = ["."]
|
||||
revision = "c3ee958efac942186012cc67de8fe5e7a5b3685d"
|
||||
pruneopts = "NUT"
|
||||
revision = "39edc7671fa431a0d14ba6e023f5f2290a86333b"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:07c508c49b9c13cf582c2b986635d0acd11e113e0535fa4b147026e15bc64185"
|
||||
name = "github.com/mikkeloscar/aur"
|
||||
packages = ["."]
|
||||
pruneopts = "NUT"
|
||||
revision = "f998dbf94dc47ef839c76740efeb673d3459be1f"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "2a7c6ddb680b62cd3f3cf47a0dfdad617e4a42e29204c75ecf5be3271feda5e1"
|
||||
input-imports = [
|
||||
"github.com/Morganamilo/go-srcinfo",
|
||||
"github.com/jguer/go-alpm",
|
||||
"github.com/mikkeloscar/aur",
|
||||
]
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
17
vendor/github.com/jguer/go-alpm/db.go
generated
vendored
17
vendor/github.com/jguer/go-alpm/db.go
generated
vendored
@ -8,6 +8,7 @@ package alpm
|
||||
|
||||
/*
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
@ -158,21 +159,13 @@ func (db Db) PkgCache() PackageList {
|
||||
}
|
||||
|
||||
func (db Db) Search(targets []string) PackageList {
|
||||
needles := &C.alpm_list_t{}
|
||||
head := needles
|
||||
needles.data = unsafe.Pointer(C.CString(targets[0]))
|
||||
var needles *C.alpm_list_t
|
||||
|
||||
for _, str := range targets[1:] {
|
||||
needles.next = &C.alpm_list_t{}
|
||||
needles = needles.next
|
||||
needles.data = unsafe.Pointer(C.CString(str))
|
||||
for _, str := range targets {
|
||||
needles = C.alpm_list_add(needles, unsafe.Pointer(C.CString(str)))
|
||||
}
|
||||
|
||||
pkglist := (*list)(unsafe.Pointer(C.alpm_db_search(db.ptr, needles)))
|
||||
|
||||
for needles = head; needles != nil; needles = needles.next {
|
||||
C.free(needles.data)
|
||||
}
|
||||
|
||||
C.alpm_list_free(needles)
|
||||
return PackageList{pkglist, db.handle}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user