pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk show build start time in localtime, not second...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7cb49f5b503f
branches:  trunk
changeset: 467737:7cb49f5b503f
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Feb 05 23:53:16 2004 +0000

description:
show build start time in localtime, not seconds-since-epoch :)

diffstat:

 mk/bulk/post-build |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r e6fdae71f6f6 -r 7cb49f5b503f mk/bulk/post-build
--- a/mk/bulk/post-build        Thu Feb 05 22:39:15 2004 +0000
+++ b/mk/bulk/post-build        Thu Feb 05 23:53:16 2004 +0000
@@ -1,5 +1,5 @@
 #!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.30 2004/02/05 10:59:40 sketch Exp $
+# $NetBSD: post-build,v 1.31 2004/02/05 23:53:16 grant Exp $
 #
 # Collect stuff after a pkg bulk build
 #
@@ -61,7 +61,11 @@
 $startfile=basename($STARTFILE);
 
 $startdate = (stat($STARTFILE))[9];
-$startdate = "unknown" if $startdate == 0;
+if ($startdate == 0) {
+       $startdate = "unknown";
+} else {
+       $startdate = localtime($startdate)."";
+}
 
 $verbose=1;
 



Home | Main Index | Thread Index | Old Index