@@ -7,17 +7,6 @@ import sys
7
7
vomses_path = "vomses"
8
8
vomsdir = "vomsdir"
9
9
10
-
11
- # A list of .lsc files that are not meant to be in the vomses file (SOFTWARE-5843)
12
- lsc_ignore_missing_vomses = [
13
- "alice/voms-alice-auth.cern.ch.lsc" ,
14
- "atlas/voms-atlas-auth.cern.ch.lsc" ,
15
- "cms/voms-cms-auth.cern.ch.lsc" ,
16
- "dteam/voms-dteam-auth.cern.ch.lsc" ,
17
- "lhcb/voms-lhcb-auth.cern.ch.lsc" ,
18
- ]
19
-
20
-
21
10
def usage ():
22
11
print ("usage: %s [vomses vomsdir]" % os .path .basename (__file__ ))
23
12
print (" or: %s --system" % os .path .basename (__file__ ))
@@ -71,7 +60,6 @@ vomses_entries = get_vomses()
71
60
missing_lsc_files = []
72
61
missing_vomses_entries = []
73
62
dn_mismatches = []
74
- wrongly_ignored_lsc = []
75
63
76
64
for entry in vomses_entries :
77
65
lsc = get_lsc (entry )
@@ -88,24 +76,15 @@ vomses_lsc_files = set(entry.lsc for entry in vomses_entries)
88
76
89
77
os .chdir (vomsdir )
90
78
for lsc_path in sorted (glob .glob ("*/*.lsc" )):
91
- if lsc_path in lsc_ignore_missing_vomses :
92
- if lsc_path in vomses_lsc_files :
93
- wrongly_ignored_lsc += [
94
- "vomses entry found for ignored lsc file %s; please remove from "
95
- "lsc_ignore_missing_vomses"
96
- ]
97
- else :
98
- if lsc_path not in vomses_lsc_files :
99
- missing_vomses_entries += ["No vomses entry for %s" % lsc_path ]
79
+ if lsc_path not in vomses_lsc_files :
80
+ missing_vomses_entries += ["No vomses entry for %s" % lsc_path ]
100
81
101
- for x in (missing_lsc_files , missing_vomses_entries , dn_mismatches ,
102
- wrongly_ignored_lsc ):
82
+ for x in (missing_lsc_files , missing_vomses_entries , dn_mismatches ):
103
83
if x :
104
84
for line in x :
105
85
print (line )
106
86
print ()
107
87
108
- e = bool (missing_lsc_files or missing_vomses_entries or dn_mismatches or
109
- wrongly_ignored_lsc )
88
+ e = bool (missing_lsc_files or missing_vomses_entries or dn_mismatches )
110
89
sys .exit (e )
111
90
0 commit comments