mirror of
https://github.com/Jguer/yay.git
synced 2025-08-19 05:31:18 +02: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 == "" {
|
||||
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
|
||||
|
@ -97,6 +97,10 @@ func (q Query) PrintSearch(start int) {
|
||||
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 {
|
||||
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) {
|
||||
if len(os.Args) < 2 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user