mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
Do not warn about downgrades when only downloading package
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
2e5e496eb0
commit
ff487212a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user