From ff487212a2701c6a9755acb3ea8e75764eed9488 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 5 Jul 2015 14:32:35 +1000 Subject: Do not warn about downgrades when only downloading package Signed-off-by: Allan McRae --- lib/libalpm/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index e6081074..2684e94f 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -90,7 +90,7 @@ int SYMEXPORT alpm_add_pkg(alpm_handle_t *handle, alpm_pkg_t *pkg) _alpm_log(handle, ALPM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"), localpkgname, localpkgver); } - } else if(cmp < 0) { + } else if(cmp < 0 && !(trans->flags & ALPM_TRANS_FLAG_DOWNLOADONLY)) { /* local version is newer */ _alpm_log(handle, ALPM_LOG_WARNING, _("downgrading package %s (%s => %s)\n"), localpkgname, localpkgver, pkgver); -- cgit v1.2.3-70-g09d2