summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 74bdf0f8..80350d1b 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -415,7 +415,8 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
nb = pm_list_is_strin(pathname, info->backup) ? 1 : 0;
} else {
/* op == PM_TRANS_TYPE_UPGRADE */
- if((md5_orig = _alpm_needbackup(pathname, oldpkg->backup)) != 0) {
+ md5_orig = _alpm_needbackup(pathname, oldpkg->backup);
+ if(md5_orig) {
nb = 1;
}
}