diff --git a/actions.go b/actions.go index 94949c3c..716014d9 100644 --- a/actions.go +++ b/actions.go @@ -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 diff --git a/aur/aur.go b/aur/aur.go index fc0d70ad..36703ded 100644 --- a/aur/aur.go +++ b/aur/aur.go @@ -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") } diff --git a/cmd/yay/yay.go b/cmd/yay/yay.go index 94caf159..609b682f 100644 --- a/cmd/yay/yay.go +++ b/cmd/yay/yay.go @@ -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 {