mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Added AUR out-of-date checks
This commit is contained in:
parent
cfb0efea45
commit
e3ae50dbd5
|
@ -218,6 +218,9 @@ func LocalStatistics(version string) error {
|
||||||
if res.Maintainer == "" {
|
if res.Maintainer == "" {
|
||||||
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;;40m is orphaned.\x1b[0m\n", res.Name)
|
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;;40m is orphaned.\x1b[0m\n", res.Name)
|
||||||
}
|
}
|
||||||
|
if res.OutOfDate != 0 {
|
||||||
|
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;;40m is out-of-date in AUR.\x1b[0m\n", res.Name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -97,6 +97,10 @@ func (q Query) PrintSearch(start int) {
|
||||||
toprint += fmt.Sprintf("\x1b[31;40m(Orphaned)\x1b[0m ")
|
toprint += fmt.Sprintf("\x1b[31;40m(Orphaned)\x1b[0m ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if res.OutOfDate != 0 {
|
||||||
|
toprint += fmt.Sprintf("\x1b[31;40m(Out-of-date)\x1b[0m ")
|
||||||
|
}
|
||||||
|
|
||||||
if res.Installed == true {
|
if res.Installed == true {
|
||||||
toprint += fmt.Sprintf("\x1b[32;40mInstalled\x1b[0m")
|
toprint += fmt.Sprintf("\x1b[32;40mInstalled\x1b[0m")
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ func usage() {
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
var version = "55"
|
var version = "1.82"
|
||||||
|
|
||||||
func parser() (op string, options []string, packages []string, err error) {
|
func parser() (op string, options []string, packages []string, err error) {
|
||||||
if len(os.Args) < 2 {
|
if len(os.Args) < 2 {
|
||||||
|
|
Loading…
Reference in a new issue