Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/5a0b3770789058ea6a24da592944ed85b9a4aebd

>---------------------------------------------------------------

commit 5a0b3770789058ea6a24da592944ed85b9a4aebd
Author: David M Peixotto <[email protected]>
Date:   Sun May 29 13:07:45 2011 -0500

    Fix strftime string in fingerprint script
    
    There was an extra % in the strftime string used in the fingerprint
    script to name the output files. It worked fine in python 2.6 on mac
    os, but was producing bad file names in python 2.7 on linux.

>---------------------------------------------------------------

 utils/fingerprint/fingerprint.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/fingerprint/fingerprint.py b/utils/fingerprint/fingerprint.py
index f04b98e..5a75327 100755
--- a/utils/fingerprint/fingerprint.py
+++ b/utils/fingerprint/fingerprint.py
@@ -159,7 +159,7 @@ def validate(opts, args, parser):
   if opts.dir:
     fname = opts.output
     if fname is None:
-      fname = datetime.today().strftime("%Y-%m%-%d_%H-%M-%S") + ".fp"
+      fname = datetime.today().strftime("%Y-%m-%d_%H-%M-%S") + ".fp"
     path = os.path.join(opts.dir, fname)
     opts.output_file = path
     opts.output = file(path, "w")



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to