diff options
author | Allan McRae <mcrae_allan@hotmail.com> | 2008-02-18 14:18:47 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-18 00:18:43 -0600 |
commit | b091ccc400d3cabc1a632bd025f9fecc3c2bc8c4 (patch) | |
tree | d387be42e4c5be5c0553025b011035d5b9fff943 | |
parent | 4ac9b2eb068aff3ff4f785e28712bb0fa9e045be (diff) |
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>
-rw-r--r-- | lib/libalpm/sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index ced20c5a..44fef4e7 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -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)); return(0); } else { - _alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"), - alpm_pkg_get_name(local), alpm_pkg_get_version(local)); + if(!(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY)) { + _alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"), + alpm_pkg_get_name(local), alpm_pkg_get_version(local)); + } } } } |