Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-05-04 21:21:51 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-05-04 21:21:51 +0000
commitde5e40bcd8cae8d42602ec718422b59a412c6d49 (patch)
treef0b09d3de73f8b12306ecd20959e3d7ec8d0aa50 /lib/libalpm
parent0e72c49921c6cd492aa15bfe8bf1f46da767b320 (diff)
code cleanup
Diffstat (limited to 'lib/libalpm')
-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;
}
}