Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 982d3556..7eb2539b 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -561,16 +561,8 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive,
} else if(strcmp(line, "%PACKAGER%") == 0) {
READ_AND_STORE(pkg->packager);
} else if(strcmp(line, "%CSIZE%") == 0) {
- /* Note: the CSIZE and SIZE fields both share the "size" field in the
- * pkginfo_t struct. This can be done b/c CSIZE is currently only used
- * in sync databases, and SIZE is only used in local databases.
- */
READ_NEXT();
pkg->size = _alpm_strtoofft(line);
- /* also store this value to isize if isize is unset */
- if(pkg->isize == 0) {
- pkg->isize = pkg->size;
- }
} else if(strcmp(line, "%ISIZE%") == 0) {
READ_NEXT();
pkg->isize = _alpm_strtoofft(line);