Explorar el Código

Util - duplicates: don't report matches with the same config.

Was matching vs the raw input, so when that included extension or path
it was not an exact match and got reported as a duplicate.
Instead compare config type against config type to avoid that.
Jason Rumney hace 1 año
padre
commit
46d66ef58c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      util/duplicates.py

+ 1 - 1
util/duplicates.py

@@ -17,7 +17,7 @@ def main():
 
 
         # device = FakeDevice(sample_dps)
         # device = FakeDevice(sample_dps)
         for m in possible_matches(sample_dps):
         for m in possible_matches(sample_dps):
-            if m.config_type == filename:
+            if m.config_type == config.config_type:
                 continue
                 continue
             if m.match_quality(sample_dps) > 50:
             if m.match_quality(sample_dps) > 50:
                 print(
                 print(