[Pcsclite-git-commit] [pcsc-tools] 03/04: ATR_analysis: propose to submit the ATR if not known
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Jun 10 18:59:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit 36210326f4e0a0f72774c5b30241e1db58dead96
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Wed Jun 8 15:33:12 2016 +0200
ATR_analysis: propose to submit the ATR if not known
We propose to submit the ATR at http://smartcard-atr.appspot.com/ when
the ATR is not found in the list.
The message is always displayed for an unknown ATR, not just after the
list has been updated.
---
ATR_analysis | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/ATR_analysis b/ATR_analysis
index c5b93e2..1e49a29 100755
--- a/ATR_analysis
+++ b/ATR_analysis
@@ -274,7 +274,6 @@ if ($found == 1)
# ATR not found
my $file = $SMARTCARD_LIST[0];
my $url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt";
- $found = 0;
# update the ATR list
if (update_smartcard_list($file, $url))
@@ -282,15 +281,15 @@ if ($found == 1)
# try again with an updated list
$found = find_card($atr, $file);
}
+}
- # still not found?
- if ($found)
- {
- print "Your card is not present in the database.\n";
- print "Please submit your unknown card at:\n";
- $atr =~ s/ //g;
- print "http://smartcard-atr.appspot.com/parse?ATR=$atr\n";
- }
+# still not found?
+if ($found)
+{
+ print "Your card is not present in the database.\n";
+ print "Please submit your unknown card at:\n";
+ $atr =~ s/ //g;
+ print "http://smartcard-atr.appspot.com/parse?ATR=$atr\n";
}
######## Sub functions
--
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