File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -190,20 +190,24 @@ def check_installer_user():
190190
191191 if username != actual_user :
192192 raise Exception (f'mytonctrl was installed by another user. Probably you need to launch mtc with `{ actual_user } ` user.' )
193+ #end define
193194
194195
195196def PreUp (local , ton ):
196197 CheckMytonctrlUpdate (local )
197198 check_installer_user ()
198199 check_vport (local , ton )
199200 # CheckTonUpdate()
201+ #end define
202+
200203
201204def Installer (args ):
202205 # args = ["python3", "/usr/src/mytonctrl/mytoninstaller.py"]
203206 args = ["python3" , "-m" , "mytoninstaller" ]
204207 subprocess .run (args )
205208#end define
206209
210+
207211def GetAuthorRepoBranchFromArgs (args ):
208212 data = dict ()
209213 arg1 = GetItemFromList (args , 0 )
@@ -222,6 +226,7 @@ def GetAuthorRepoBranchFromArgs(args):
222226 if arg2 :
223227 data ["branch" ] = arg2
224228 return data
229+ #end define
225230
226231
227232def check_vport (local , ton ):
@@ -236,6 +241,7 @@ def check_vport(local, ton):
236241 result = client_socket .connect_ex ((ip , addr .port ))
237242 if result != 0 :
238243 color_print (local .translate ("vport_error" ))
244+ #end define
239245
240246
241247def fix_git_config (git_path : str ):
You can’t perform that action at this time.
0 commit comments