File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 281f9d868fee8e4f9750fc12289dc10522f587ea
32
+ refs/heads/stable: 622ec5d8d0f32977e0fb85f837b43c0570982121
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change 9
9
# except according to those terms.
10
10
11
11
import re
12
+ import os
12
13
13
14
license_re = re .compile (
14
15
u"""(#|//) Copyright .* The Rust Project Developers. See the COPYRIGHT
40
41
]
41
42
42
43
def check_license (name , contents ):
44
+ name = os .path .normpath (name )
43
45
# Whitelist check
44
- if any (name .endswith (e ) for e in exceptions ):
46
+ if any (name .endswith (os . path . normpath ( e ) ) for e in exceptions ):
45
47
return True
46
48
47
49
# Xfail check
Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ def interesting_file(f):
122
122
'src/liblibc' ,
123
123
}
124
124
125
- if any (d in dirpath for d in skippable_dirs ):
125
+ dirpath = os .path .normpath (dirpath )
126
+ if any (os .path .normpath (d ) in dirpath for d in skippable_dirs ):
126
127
continue
127
128
128
129
file_names = [os .path .join (dirpath , f ) for f in filenames
You can’t perform that action at this time.
0 commit comments