diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-09-19 07:21:56 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-09-28 07:25:57 +0200 |
commit | 47622eef4dd8fd86a0aa0e3ebdb7b33f7c9d6804 (patch) | |
tree | 4fb65c38ad6a8c8fb4577977d78b07b891be3a2f /lib/libalpm/package.h | |
parent | 219808714f94788a66a430786c552f60e95b1a01 (diff) | |
download | pacman-47622eef4dd8fd86a0aa0e3ebdb7b33f7c9d6804.tar.gz pacman-47622eef4dd8fd86a0aa0e3ebdb7b33f7c9d6804.tar.xz |
Support for localized times in metadata
Packages and DBs now support using the UNIX epoch (seconds since Jan 1, 1970)
for use in builddate and installdate. This will only affect newly built
packages. Old existing packages with the text format are still supported, but
this is deprecated.
In the case of removal of text time support, this code will fail gracefully,
returning the start of the epoch for broken packages.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r-- | lib/libalpm/package.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index 47d384b6..42ebe0e0 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -54,8 +54,8 @@ struct __pmpkg_t { char version[PKG_VERSION_LEN]; char desc[PKG_DESC_LEN]; char url[PKG_URL_LEN]; - char builddate[PKG_DATE_LEN]; - char installdate[PKG_DATE_LEN]; + time_t builddate; + time_t installdate; char packager[PKG_PACKAGER_LEN]; char md5sum[PKG_MD5SUM_LEN]; char arch[PKG_ARCH_LEN]; |