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.
This commit is contained in:
morganamilo 2018-05-29 23:39:02 +01:00
parent b140e66f6a
commit e76f978d63
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -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