summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-16 22:07:59 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-16 22:07:59 +0100
commitfbea96fd72939013a7d3440260f4be105cf5c819 (patch)
tree8cc76ea5395bfe447dbe722e6dce0754c8e9f6d5 /lib/libalpm
parenteefe29d99ae8dfbbbfcc45f2e7282c5645b20ad9 (diff)
downloadpacman-fbea96fd72939013a7d3440260f4be105cf5c819.tar.gz
pacman-fbea96fd72939013a7d3440260f4be105cf5c819.tar.xz
code cleanup
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 25b44e45..800cc0df 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -416,7 +416,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
notouch = 1;
} else {
if(!pmo_upgrade || oldpkg == NULL) {
- nb = pm_list_is_strin(pathname, info->backup) ? 1 : 0;
+ nb = pm_list_is_strin(pathname, info->backup);
} else {
/* op == PM_TRANS_TYPE_UPGRADE */
md5_orig = _alpm_needbackup(pathname, oldpkg->backup);