[Pcsclite-git-commit] [website] 05/05: generate_supported_readers: ignore false duplicates

Ludovic Rousseau rousseau at moszumanska.debian.org
Sun Jul 31 13:51:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository website.

commit 5e0d41922fa61e0a197723ab5dbc3fec96218335
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Jul 31 15:47:53 2016 +0200

    generate_supported_readers: ignore false duplicates
    
    Ignore 2rd (and more) interfaces of composite devices to not generate
    useless lines in the "section: duplicates" of supported_readers.txt
---
 generate_supported_readers.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/generate_supported_readers.py b/generate_supported_readers.py
index eac6bcf..7794f27 100755
--- a/generate_supported_readers.py
+++ b/generate_supported_readers.py
@@ -140,6 +140,10 @@ def generate_duplicates(output_file, section, readers, manual_names):
         if vidpid not in vidpids:
             vidpids[vidpid] = list()
 
+        # ignore 2rd (and more) interfaces of composite devices
+        if reader.find('_i') > -1:
+            continue
+
         vidpids[vidpid].append(reader)
 
     for vidpid in sorted(vidpids):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git



More information about the Pcsclite-cvs-commit mailing list