소스 검색

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 1 년 전
부모
커밋
46d66ef58c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      util/duplicates.py

+ 1 - 1
util/duplicates.py

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