mirror of
https://github.com/Jguer/yay.git
synced 2024-11-07 01:27:21 +01:00
Fixed bug where new version and old version were switched
This commit is contained in:
parent
2f2df47639
commit
0032d903ac
@ -205,7 +205,7 @@ func Upgrade(baseDir string, flags []string) error {
|
|||||||
// Leaving this here for now, warn about downgrades later
|
// Leaving this here for now, warn about downgrades later
|
||||||
if res.LastModified > foreign[res.Name].Date {
|
if res.LastModified > foreign[res.Name].Date {
|
||||||
fmt.Printf("\x1b[1m\x1b[32m==>\x1b[33;1m %s: \x1b[0m%s \x1b[33;1m-> \x1b[0m%s\n",
|
fmt.Printf("\x1b[1m\x1b[32m==>\x1b[33;1m %s: \x1b[0m%s \x1b[33;1m-> \x1b[0m%s\n",
|
||||||
res.Name, res.Version, foreign[res.Name].Version)
|
res.Name, foreign[res.Name].Version, res.Version)
|
||||||
outdated = append(outdated, res)
|
outdated = append(outdated, res)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user