* Fix wrong filesize being recorded to local DB. Reported by Andreas Radke.
This commit is contained in:
parent
5f15a80274
commit
38784a7eb5
1 changed files with 2 additions and 1 deletions
|
@ -568,8 +568,9 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
|
||||||
"%s\n\n", info->packager);
|
"%s\n\n", info->packager);
|
||||||
}
|
}
|
||||||
if(info->size) {
|
if(info->size) {
|
||||||
|
/* only write installed size, csize is irrelevant once installed */
|
||||||
fprintf(fp, "%%SIZE%%\n"
|
fprintf(fp, "%%SIZE%%\n"
|
||||||
"%lu\n\n", info->size);
|
"%lu\n\n", info->isize);
|
||||||
}
|
}
|
||||||
if(info->reason) {
|
if(info->reason) {
|
||||||
fprintf(fp, "%%REASON%%\n"
|
fprintf(fp, "%%REASON%%\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue