index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-11-08 23:18:07 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-08 23:18:07 -0600 |
commit | e6673544b2afc9e463cdbf4e7d0bb0b5d7b6b80d (patch) | |
tree | bf3982d47f33e872a229a8b31e2528dfeea802a8 /src/pacman | |
parent | 5b4b4df4c9c2cfb3aa2e4b40c2c49ea8bf10ce37 (diff) |
-rw-r--r-- | src/pacman/package.c | 7 |
diff --git a/src/pacman/package.c b/src/pacman/package.c index 459cb8d4..2e2eec91 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -45,6 +45,7 @@ void dump_pkg_full(pmpkg_t *pkg, int level) { const char *reason, *descheader; time_t bdate, idate; + char bdatestr[50], idatestr[50]; if(pkg == NULL) { return; @@ -52,7 +53,9 @@ void dump_pkg_full(pmpkg_t *pkg, int level) /* set variables here, do all output below */ bdate = alpm_pkg_get_builddate(pkg); + strftime(bdatestr, 50, "%c", localtime(&bdate)); idate = alpm_pkg_get_installdate(pkg); + strftime(idatestr, 50, "%c", localtime(&idate)); switch((long)alpm_pkg_get_reason(pkg)) { case PM_PKG_REASON_EXPLICIT: @@ -86,9 +89,9 @@ void dump_pkg_full(pmpkg_t *pkg, int level) printf(_("Installed Size : %6.2f K\n"), (float)alpm_pkg_get_size(pkg) / 1024.0); printf(_("Packager : %s\n"), (char *)alpm_pkg_get_packager(pkg)); printf(_("Architecture : %s\n"), (char *)alpm_pkg_get_arch(pkg)); - printf(_("Build Date : %s"), ctime(&bdate)); /*ctime implicit newline */ + printf(_("Build Date : %s\n"), bdatestr); if(level > 0) { - printf(_("Install Date : %s"), ctime(&idate)); /*ctime implicit newline */ + printf(_("Install Date : %s\n"), idatestr); printf(_("Install Reason : %s\n"), reason); } printf(_("Install Script : %s\n"), |