summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-06 14:39:17 +0200
committerDan McGee <dan@archlinux.org>2011-06-07 17:51:46 +0200
commit67c33fb8fff4db008e3afde8b6dd228f181755ed (patch)
treed630ec15e425fe41dd109eee896c6a9b1efe56c9 /lib
parent3df88a1a01926587b0b68dcff97d539746e3a8f9 (diff)
downloadpacman-67c33fb8fff4db008e3afde8b6dd228f181755ed.tar.gz
pacman-67c33fb8fff4db008e3afde8b6dd228f181755ed.tar.xz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 702b12e9..ad6ef17e 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -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);
}