summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-24 11:27:35 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-24 11:27:35 +0000
commit5a13de80a1143ce42a9cef7d65a2f9d0e52eab46 (patch)
tree0e8300285c8d2bfdf2648c16bab41e09c633b383 /lib/libalpm
parentcdd81bf1775a0ee569a9920cf0e79d4bb6751e6f (diff)
downloadpacman-5a13de80a1143ce42a9cef7d65a2f9d0e52eab46.tar.xz
fixed the format of %REASON% entry when writing it
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
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);
}