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:
parent
4ac9b2eb06
commit
b091ccc400
@ -337,11 +337,13 @@ 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 {
|
||||||
|
if(!(trans->flags & PM_TRANS_FLAG_DOWNLOADONLY)) {
|
||||||
_alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"),
|
_alpm_log(PM_LOG_WARNING, _("%s-%s is up to date -- reinstalling\n"),
|
||||||
alpm_pkg_get_name(local), alpm_pkg_get_version(local));
|
alpm_pkg_get_name(local), alpm_pkg_get_version(local));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* add the package to the transaction */
|
/* add the package to the transaction */
|
||||||
if(!_alpm_sync_find(trans->packages, alpm_pkg_get_name(spkg))) {
|
if(!_alpm_sync_find(trans->packages, alpm_pkg_get_name(spkg))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user