From de5e40bcd8cae8d42602ec718422b59a412c6d49 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 4 May 2005 21:21:51 +0000 Subject: code cleanup --- lib/libalpm/add.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; } } -- cgit v1.2.3-24-g4f1b