1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-04 16:45:07 -05:00

Do not warn about up to date package when downloading only

Stops the "<pkg> is up to date -- reinstalling" message when using the
download only flag.
Ref: http://archlinux.org/pipermail/pacman-dev/2008-January/010952.html

Signed-off-by: Allan McRae <mcrae_allan@hotmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2008-02-18 14:18:47 +10:00 committed by Dan McGee
parent 4ac9b2eb06
commit b091ccc400

View File

@ -337,8 +337,10 @@ int _alpm_sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sy
alpm_pkg_get_name(local), alpm_pkg_get_version(local)); alpm_pkg_get_name(local), alpm_pkg_get_version(local));
return(0); return(0);
} else { } else {
_alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"), if(!(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY)) {
alpm_pkg_get_name(local), alpm_pkg_get_version(local)); _alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"),
alpm_pkg_get_name(local), alpm_pkg_get_version(local));
}
} }
} }
} }