Merge pull request #620 from Morganamilo/fixtimeupdate

Fix padding on time update
This commit is contained in:
Anna 2018-08-04 14:25:10 +01:00 committed by GitHub
commit 6515a9bf04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ func (u upSlice) Less(i, j int) bool {
func getVersionDiff(oldVersion, newVersion string) (left, right string) {
if oldVersion == newVersion {
return oldVersion, newVersion
return oldVersion + red(""), newVersion + green("")
}
diffPosition := 0
@ -286,10 +286,10 @@ func printLocalNewerThanAUR(
if !isDevelName(pkg.Name()) && alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 {
fmt.Printf("%s %s: local (%s) is newer than AUR (%s)\n",
yellow(bold(smallArrow)),
cyan(pkg.Name()),
left, right,
)
yellow(bold(smallArrow)),
cyan(pkg.Name()),
left, right,
)
}
}
}