[Pcsclite-cvs-commit] r3328 - /website/matrix.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Feb 27 08:11:17 UTC 2009


Author: rousseau
Date: Fri Feb 27 08:11:17 2009
New Revision: 3328

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3328
Log:
check_list(): raise an exception if some readers are not listed in readers.txt

Modified:
    website/matrix.py

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3328&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Fri Feb 27 08:11:17 2009
@@ -53,15 +53,20 @@
     os.chdir(cwd)
 
     # check that each reader file is listed
-    print real_list
+    #print real_list
     for r in reader_list:
-        print "remove ", r
+        #print "remove ", r
         try:
             real_list.remove(r)
         except:
             print "reader %s not yet listed" % r
-    print real_list
 
+    # also remove the non-reader supported_readers.txt file
+    real_list.remove("supported_readers.txt")
+
+    # some USB descriptor are not listed in readers.txt?
+    if len(real_list) > 0:
+        raise Exception("readers %s are not listed" % real_list)
 
 if __name__ == "__main__":
     # one foobar.txt per line




More information about the Pcsclite-cvs-commit mailing list