From 5a13de80a1143ce42a9cef7d65a2f9d0e52eab46 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sun, 24 Apr 2005 11:27:35 +0000 Subject: fixed the format of %REASON% entry when writing it --- lib/libalpm/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 70d5f8e1..2f3e9670 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -483,7 +483,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) fputs("%SIZE%\n", fp); fprintf(fp, "%ld\n\n", info->size); fputs("%REASON%\n", fp); - fprintf(fp, "%ld\n\n", info->reason); + fprintf(fp, "%d\n\n", info->reason); fclose(fp); } -- cgit v1.2.3-24-g4f1b