[Pcsclite-git-commit] [pcsc-tools] 02/03: ATR_analysis: correctly use wget to store the ATR list
    Ludovic Rousseau 
    rousseau at moszumanska.debian.org
       
    Sun Nov  8 17:07:00 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit 98b043657e21860feea4e99dd66d65372cb17233
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Nov 8 18:00:23 2015 +0100
    ATR_analysis: correctly use wget to store the ATR list
    
    Using --output-file= correctly set the file time. But the content of the
    file is the log of the wget command not the content of the remote file.
    The code was completely broken.
    
    This change reverts a4165dbd2baca4588c4ac8b21bc40a6dc21c54d8 and add the
    missing touch(1) call.
    
    Closes Debian bug #804049: [pcsc-tools] Update of smartcard_list.txt is
    broken
---
 ATR_analysis | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ATR_analysis b/ATR_analysis
index d90c21c..7ca1a66 100755
--- a/ATR_analysis
+++ b/ATR_analysis
@@ -247,7 +247,7 @@ sub update_smartcard_list($$)
 		}
 		else
 		{
-			system("wget $url --output-file=$file");
+			system("wget $url --output-document=$file ; touch $file");
 		}
 
 		# did an update
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git
    
    
More information about the Pcsclite-cvs-commit
mailing list