Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
e76f978d63
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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