1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

fixed the format of %REASON% entry when writing it

This commit is contained in:
Aurelien Foret 2005-04-24 11:27:35 +00:00
parent cdd81bf177
commit 5a13de80a1

View File

@ -483,7 +483,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq)
fputs("%SIZE%\n", fp); fputs("%SIZE%\n", fp);
fprintf(fp, "%ld\n\n", info->size); fprintf(fp, "%ld\n\n", info->size);
fputs("%REASON%\n", fp); fputs("%REASON%\n", fp);
fprintf(fp, "%ld\n\n", info->reason); fprintf(fp, "%d\n\n", info->reason);
fclose(fp); fclose(fp);
} }