1111CONST_TLSH_NULL = "0"
1212MODULE_INFO_FILE_NAME = "module-info.json"
1313MODULE_TYPE_NAME = "MODULE_NAME"
14- MODULE_TYPE_OUTPUT = "MODULE_OUTPUT"
15- MODULE_TYPE_INSTALLED = "installed"
16- NEED_CHECK_WORD = "(NEED_CHECK)"
1714skip_license = ['Other Proprietary License' , 'LGE License' , 'LGE Proprietary License' ]
1815NOTICE_FILE_NAME = "NOTICE"
1916
@@ -60,9 +57,6 @@ def __init__(self, value):
6057 self .additional_oss_items = []
6158 self .is_new_bin = True
6259
63- def __del__ (self ):
64- pass
65-
6660 def set_bin_name (self , value ):
6761 self .bin_name = value
6862
@@ -78,12 +72,6 @@ def set_source_code_path(self, value):
7872 def set_module_name (self , value ):
7973 self .module_name = value
8074
81- def set_exclude (self , value ):
82- if value :
83- self .exclude = "Exclude"
84- else :
85- self .exclude = ""
86-
8775 def set_notice (self , value ):
8876 self .notice = value
8977
@@ -109,15 +97,6 @@ def set_oss_name(self, value):
10997 def set_oss_version (self , value ):
11098 self .oss_version = value
11199
112- def set_url (self , value ):
113- self .url = value
114-
115- def set_homepage (self , value ):
116- self .homepage = value
117-
118- def set_download_location (self , value ):
119- self .download_location = value
120-
121100 def get_print_items (self ):
122101 print_items_txt = []
123102 print_items_excel = []
@@ -186,25 +165,3 @@ def get_comment(default_comment, license_to_notice, notice_value, empty_columns)
186165 comment = default_comment + comment # Paste Auto ID comment in front.
187166
188167 return comment
189-
190-
191- def set_value_switch (bin , key , value ):
192- switcher = {
193- 'BinaryName' : bin .set_bin_name ,
194- 'SourceCodePath' : bin .set_source_code_path ,
195- 'ModuleName' : bin .set_module_name ,
196- 'NOTICE' : bin .set_notice ,
197- 'License' : bin .set_license ,
198- 'mkFilePath' : bin .mk_file_path ,
199- 'tlsh' : bin .set_tlsh ,
200- 'checksum' : bin .set_checksum ,
201- 'OSSName' : bin .set_oss_name ,
202- 'OSSVersion' : bin .set_oss_version ,
203- 'Comment' : bin .set_comment
204- }
205- func = switcher .get (key , lambda key : invalid (key ))
206- func (value )
207-
208-
209- def invalid (cmd ):
210- print ('[{}] is invalid' .format (cmd ))
0 commit comments