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 3030*/share/splunk/pdf*
3131*mrsparkle*"""
3232
33- major_version = 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
3436
35- if major_version and major_version .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 :
3642 print (EXCLUDE_V7 )
37- if int (major_version . group ( 1 ) ) == 7 :
43+ if int (major_version ) == 7 :
3844 print ("*/bin/parsetest*" )
39- if int (major_version . group ( 2 ) ) < 3 :
45+ if int (minor_version ) < 3 :
4046 print ("*/etc/apps/framework*" )
4147 print ("*/etc/apps/gettingstarted*" )
4248 else :
4349 print ("*/etc/apps/splunk_metrics_workspace*" )
44- elif 7 < int (major_version . group ( 1 ) ) < 9 :
50+ elif 7 < int (major_version ) < 9 :
4551 print ("*/etc/apps/splunk_metrics_workspace*" )
46- if int (major_version . group ( 2 ) ) < 1 :
52+ if int (minor_version ) < 1 :
4753 print ("*/bin/parsetest*" )
You can’t perform that action at this time.
0 commit comments