diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-05-04 21:21:51 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-05-04 21:21:51 +0000 |
commit | de5e40bcd8cae8d42602ec718422b59a412c6d49 (patch) | |
tree | f0b09d3de73f8b12306ecd20959e3d7ec8d0aa50 /lib/libalpm/add.c | |
parent | 0e72c49921c6cd492aa15bfe8bf1f46da767b320 (diff) | |
download | pacman-de5e40bcd8cae8d42602ec718422b59a412c6d49.tar.xz |
code cleanup
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 3 |
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; } } |