summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-14 17:26:19 +0000
committerAaron Griffin <aaron@archlinux.org>2006-11-14 17:26:19 +0000
commit7d6161ccc33ce06566585fc56adf8e0ce2876658 (patch)
tree2154dac7833efafd1cce982fcb952f840a6e9ac9 /lib/libalpm/sync.c
parenteb514bee967d396410e0647f5cd2a897cc619d0f (diff)
downloadpacman-7d6161ccc33ce06566585fc56adf8e0ce2876658.tar.xz
* has_archname changes
* makepkg attempt at multiple file integrity checks * honor "force" option on -S packages (not just -Su)
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index b7ebe6b4..52de2660 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -324,7 +324,7 @@ int _alpm_sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, pmlist_t *dbs_sync,
local = _alpm_db_get_pkgfromcache(db_local, spkg->name);
if(local) {
cmp = _alpm_versioncmp(local->version, spkg->version);
- if(cmp > 0) {
+ if(cmp > 0 && !spkg->force) {
/* local version is newer -- get confirmation before adding */
int resp = 0;
QUESTION(trans, PM_TRANS_CONV_LOCAL_NEWER, local, NULL, NULL, &resp);