index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-09-02 19:26:07 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-02 19:26:07 -0500 |
commit | 83a1e4fee39321358858841069e1fe36d44edefc (patch) | |
tree | 9638a56a69aa45c071dd3934dfcb2b9fca8e5791 /lib/libalpm/be_sync.c | |
parent | c51b9ca0ad897428a008701e35f8f11fa0ad9046 (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 8 |
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); |