mirror of
https://github.com/Jguer/yay
synced 2024-10-15 20:42:19 +00: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]
|
||||
}
|
||||
|
||||
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 {
|
||||
Db string
|
||||
Name string
|
||||
|
|
14
depOrder.go
14
depOrder.go
|
@ -5,20 +5,6 @@ import (
|
|||
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 {
|
||||
Aur []Base
|
||||
Repo []*alpm.Package
|
||||
|
|
Loading…
Reference in a new issue