mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Merge pull request #620 from Morganamilo/fixtimeupdate
Fix padding on time update
This commit is contained in:
commit
6515a9bf04
1 changed files with 5 additions and 5 deletions
10
upgrade.go
10
upgrade.go
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue