mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
Remove incorrect output when downloading only
When only downloading a package, pacman can produce some incorrect output. > pacman -Sddw nvidia-utils warning: nvidia-utils-270.41.19-1 is up to date -- reinstalling This line is now now silenced when using -Sw. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
3df88a1a01
commit
67c33fb8ff
@ -92,7 +92,7 @@ int SYMEXPORT alpm_add_pkg(pmpkg_t *pkg)
|
||||
_alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- skipping\n"),
|
||||
localpkgname, localpkgver);
|
||||
return(0);
|
||||
} else {
|
||||
} else if(!(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY)) {
|
||||
_alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"),
|
||||
localpkgname, localpkgver);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user