File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 30
30
*/share/splunk/pdf*
31
31
*mrsparkle*"""
32
32
33
- m = re .match (".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz" , sys .argv [1 ])
33
+ version_string = re .match (".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz" , sys .argv [1 ])
34
+ major_version = None
35
+ minor_version = None
34
36
35
- if m and m .group (1 ):
37
+ if version_string :
38
+ major_version = version_string .group (1 )
39
+ minor_version = version_string .group (2 )
40
+
41
+ if major_version :
36
42
print (EXCLUDE_V7 )
37
- if int (m . group ( 1 ) ) == 7 :
43
+ if int (major_version ) == 7 :
38
44
print ("*/bin/parsetest*" )
39
- if int (m . group ( 2 ) ) < 3 :
45
+ if int (minor_version ) < 3 :
40
46
print ("*/etc/apps/framework*" )
41
47
print ("*/etc/apps/gettingstarted*" )
42
48
else :
43
49
print ("*/etc/apps/splunk_metrics_workspace*" )
44
- elif 7 < int (m . group ( 1 ) ) < 9 :
50
+ elif 7 < int (major_version ) < 9 :
45
51
print ("*/etc/apps/splunk_metrics_workspace*" )
46
- if int (m . group ( 2 ) ) < 1 :
52
+ if int (minor_version ) < 1 :
47
53
print ("*/bin/parsetest*" )
You can’t perform that action at this time.
0 commit comments