Browse Source

Only show warnings for pkgs that are being updated

The previous warning system would show warnings recursivley for all
packages being resolved. While I like this, other have complained at it
being overly verbose.

Either way the main purpose of this is to allow warnings to be printed
before the upgrade menu shows. This is mostly just to get a usable
warning system.

This may change if a better solution is found.
morganamilo 7 years ago
parent
commit
e76f978d63
1 changed files with 2 additions and 2 deletions
  1. 2 2
      install.go

+ 2 - 2
install.go

@@ -47,6 +47,8 @@ func install(parser *arguments) error {
 		if err != nil {
 			return err
 		}
+
+		warnings.print()
 	}
 
 	//create the arguments to pass for the repo install
@@ -98,8 +100,6 @@ func install(parser *arguments) error {
 		return err
 	}
 
-	warnings.print()
-
 	err = dp.CheckMissing()
 	if err != nil {
 		return err