summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-09-19 07:21:56 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2007-09-28 07:25:57 +0200
commit47622eef4dd8fd86a0aa0e3ebdb7b33f7c9d6804 (patch)
tree4fb65c38ad6a8c8fb4577977d78b07b891be3a2f /scripts
parent219808714f94788a66a430786c552f60e95b1a01 (diff)
downloadpacman-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 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 747484f4..cf572de4 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -767,7 +767,7 @@ create_package() {
cd "$pkgdir"
msg "$(gettext "Creating package...")"
- local builddate=$(LC_ALL= LANG= date -u "+%a %b %e %H:%M:%S %Y")
+ local builddate=$(date -u "+%s")
if [ "$PACKAGER" != "" ]; then
local packager="$PACKAGER"
else