diff options
author | Allan McRae <allan@archlinux.org> | 2012-02-20 05:24:35 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-09 00:59:13 +0100 |
commit | 4773c6b66ef618f4c6345a99d9c246045e9c723b (patch) | |
tree | 6e3ccb31e84b8e5e3799a030eb4664c193633b03 /lib/libalpm/sync.c | |
parent | 5c404268d965d9ca012e4819ac0c2f289a4c768c (diff) | |
download | pacman-4773c6b66ef618f4c6345a99d9c246045e9c723b.tar.gz pacman-4773c6b66ef618f4c6345a99d9c246045e9c723b.tar.xz |
Remove _alpm_csum
The enum alpm_pkgvalidation_t is essentially a more generic version
of _alpm_csum, so use it instead.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 5f698008..69d27af9 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -780,7 +780,7 @@ static int validate_deltas(alpm_handle_t *handle, alpm_list_t *deltas) alpm_delta_t *d = i->data; char *filepath = _alpm_filecache_find(handle, d->delta); - if(_alpm_test_checksum(filepath, d->delta_md5, ALPM_CSUM_MD5)) { + if(_alpm_test_checksum(filepath, d->delta_md5, ALPM_PKG_VALIDATION_MD5SUM)) { errors = alpm_list_add(errors, filepath); } else { FREE(filepath); |