From 900dfd1851f1591503c8f07607e84640c303188d Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 20 Jul 2018 00:36:06 +0300 Subject: [PATCH] Make output more similar to `pacman`s Before: * Empty line after `Searching AUR` * `There is` starts with capital letter without space before ``` > yay --combinedupgrade -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Searching databases for updates... :: Searching AUR for updates... :: Starting full system upgrade... there is nothing to do > yay --nocombinedupgrade -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... there is nothing to do :: Searching databases for updates... :: Searching AUR for updates... There is nothing to do ``` After: ``` > yay --combinedupgrade -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Searching databases for updates... :: Searching AUR for updates... :: Starting full system upgrade... there is nothing to do > yay --nocombinedupgrade -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... there is nothing to do :: Searching databases for updates... :: Searching AUR for updates... there is nothing to do ``` --- install.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.go b/install.go index 79d32b6e..60060a44 100644 --- a/install.go +++ b/install.go @@ -106,8 +106,6 @@ func install(parser *arguments) error { arguments.options["ignore"] = ignoreStr } - fmt.Println() - for pkg := range aurUp { parser.addTarget(pkg) } @@ -127,7 +125,7 @@ func install(parser *arguments) error { if len(dp.Aur) == 0 { if !config.CombinedUpgrade { - fmt.Println("There is nothing to do") + fmt.Println(" there is nothing to do") return nil } @@ -160,7 +158,7 @@ func install(parser *arguments) error { } if len(do.Aur) == 0 && len(arguments.targets) == 0 && (!parser.existsArg("u", "sysupgrade") || mode == ModeAUR) { - fmt.Println("There is nothing to do") + fmt.Println(" there is nothing to do") return nil }