From 981eff065b8c5b8833ecb81e29b57944b493be01 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Aug 2006 11:45:50 +0000 Subject: [PATCH] * Remove the dependency on `date', use strftime instead. --- scripts/download-using-manifests.pl.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in index 2a383e49c..751452526 100644 --- a/scripts/download-using-manifests.pl.in +++ b/scripts/download-using-manifests.pl.in @@ -2,7 +2,7 @@ use strict; use readmanifest; -use POSIX qw(tmpnam); +use POSIX qw(tmpnam strftime); my $manifestDir = "@localstatedir@/nix/manifests"; my $logFile = "@localstatedir@/log/nix/downloads"; @@ -27,8 +27,7 @@ END { unlink $tmpNar; unlink $tmpNar2; rmdir $tmpDir; } die unless scalar @ARGV == 1; my $targetPath = $ARGV[0]; -my $date = `date` or die; -chomp $date; +my $date = strftime ("%F %H:%M:%S UTC", gmtime (time)); print LOGFILE "$$ get $targetPath $date\n"; print "\n*** Trying to download/patch `$targetPath'\n";