Added AUR out-of-date checks

This commit is contained in:
Jguer 2016-12-16 01:01:12 +00:00
parent cfb0efea45
commit e3ae50dbd5
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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")
}

View file

@ -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 {