[csw-devel] SF.net SVN: gar:[3755] csw/mgar/pkg/cvsps/trunk
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Fri Mar 13 21:02:30 CET 2009
Revision: 3755
http://gar.svn.sourceforge.net/gar/?rev=3755&view=rev
Author: bdwalton
Date: 2009-03-13 20:02:25 +0000 (Fri, 13 Mar 2009)
Log Message:
-----------
Replace %z in strftime call with +0000 as all times are GMT based
(in this use anyway).
Modified Paths:
--------------
csw/mgar/pkg/cvsps/trunk/Makefile
csw/mgar/pkg/cvsps/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/cvsps/trunk/files/0008-Replace-z-use-in-strftime.patch
Modified: csw/mgar/pkg/cvsps/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cvsps/trunk/Makefile 2009-03-13 19:26:32 UTC (rev 3754)
+++ csw/mgar/pkg/cvsps/trunk/Makefile 2009-03-13 20:02:25 UTC (rev 3755)
@@ -17,6 +17,7 @@
PATCHFILES += 0005-gnulib-import-of-missing-functions.patch
PATCHFILES += 0006-enabled-imported-gnulib-functions.patch
PATCHFILES += 0007-enable-installation-of-man-pages.patch
+PATCHFILES += 0008-Replace-z-use-in-strftime.patch
PREREQUISITE_PKGS = CSWzlib CSWautomake CSWautoconf
@@ -27,7 +28,7 @@
LICENSE = COPYING
# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
+#UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
TEST_SCRIPTS =
Modified: csw/mgar/pkg/cvsps/trunk/checksums
===================================================================
--- csw/mgar/pkg/cvsps/trunk/checksums 2009-03-13 19:26:32 UTC (rev 3754)
+++ csw/mgar/pkg/cvsps/trunk/checksums 2009-03-13 20:02:25 UTC (rev 3755)
@@ -1,5 +1,4 @@
bde2110ed9f5d14de8f8cb04e9d596fe download/cvsps-2.1.tar.gz
-cb54db01900320e1bf80da166c60c2f8 download/CSWcvsps.gspec
f1980fbc932203a048a6e5c3cfa1af5b download/0001-add-basic-autotools-files.patch
85b73079daeef9d87b637939e3749489 download/0002-add-modified-autoconf-check_zlib-from-loic-dachary.patch
f5d84b7c7a05a44f64f740006df5c349 download/0003-add-script-to-do-the-autotools-setup-steps.patch
@@ -7,3 +6,4 @@
58cbd19160b6a98f3c5ff2a8786f0848 download/0005-gnulib-import-of-missing-functions.patch
02c14b029fd57a61fa97cc8209f18d7d download/0006-enabled-imported-gnulib-functions.patch
2a729989bcafa6f533bcd6b33c9ceb09 download/0007-enable-installation-of-man-pages.patch
+2410e2c909bf1635aad8d84f6e5bdc4f download/0008-Replace-z-use-in-strftime.patch
Added: csw/mgar/pkg/cvsps/trunk/files/0008-Replace-z-use-in-strftime.patch
===================================================================
--- csw/mgar/pkg/cvsps/trunk/files/0008-Replace-z-use-in-strftime.patch (rev 0)
+++ csw/mgar/pkg/cvsps/trunk/files/0008-Replace-z-use-in-strftime.patch 2009-03-13 20:02:25 UTC (rev 3755)
@@ -0,0 +1,27 @@
+From 5dd229a8918e73a09a8e7796687d20f5c7324b40 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Fri, 13 Mar 2009 20:47:32 +0100
+Subject: [PATCH] Replace %z use in strftime
+
+Since the strftime calls that use %z always work with GMT, simply
+replace %z with +0000.
+---
+ cvsps.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/cvsps.c b/cvsps.c
+index 4f49f22..7291c5a 100644
+--- a/cvsps.c
++++ b/cvsps.c
+@@ -291,7 +291,7 @@ static void load_from_cvs()
+ if (cache_date > 0)
+ {
+ struct tm * tm = gmtime(&cache_date);
+- strftime(date_str, 64, "%d %b %Y %H:%M:%S %z", tm);
++ strftime(date_str, 64, "%d %b %Y %H:%M:%S +0000", tm);
+
+ /* this command asks for logs using two different date
+ * arguments, separated by ';' (see man rlog). The first
+--
+1.6.0.5
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list