mirror of
https://github.com/Jguer/yay.git
synced 2025-12-09 00:03:52 -05:00
Move Base code to dep.go
This commit is contained in:
parent
5109fc6250
commit
75d01f32b4
14
dep.go
14
dep.go
@ -40,6 +40,20 @@ func (q providers) Swap(i, j int) {
|
|||||||
q.Pkgs[i], q.Pkgs[j] = q.Pkgs[j], q.Pkgs[i]
|
q.Pkgs[i], q.Pkgs[j] = q.Pkgs[j], q.Pkgs[i]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Base []*rpc.Pkg
|
||||||
|
|
||||||
|
func (b Base) Pkgbase() string {
|
||||||
|
return b[0].PackageBase
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b Base) Version() string {
|
||||||
|
return b[0].Version
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b Base) URLPath() string {
|
||||||
|
return b[0].URLPath
|
||||||
|
}
|
||||||
|
|
||||||
type target struct {
|
type target struct {
|
||||||
Db string
|
Db string
|
||||||
Name string
|
Name string
|
||||||
|
|||||||
14
depOrder.go
14
depOrder.go
@ -5,20 +5,6 @@ import (
|
|||||||
rpc "github.com/mikkeloscar/aur"
|
rpc "github.com/mikkeloscar/aur"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Base []*rpc.Pkg
|
|
||||||
|
|
||||||
func (b Base) Pkgbase() string {
|
|
||||||
return b[0].PackageBase
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b Base) Version() string {
|
|
||||||
return b[0].Version
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b Base) URLPath() string {
|
|
||||||
return b[0].URLPath
|
|
||||||
}
|
|
||||||
|
|
||||||
type depOrder struct {
|
type depOrder struct {
|
||||||
Aur []Base
|
Aur []Base
|
||||||
Repo []*alpm.Package
|
Repo []*alpm.Package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user