mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
...
This commit is contained in:
parent
a8b3a7084c
commit
3dd659860e
@ -84,7 +84,7 @@ class DownloadProcessPage(Page):
|
||||
|
||||
|
||||
def OnExitCb(self,event):
|
||||
print("DownloadProcessPage OnExitCb")
|
||||
#print("DownloadProcessPage OnExitCb")
|
||||
if self._Downloader == None:
|
||||
return
|
||||
try:
|
||||
@ -97,7 +97,7 @@ class DownloadProcessPage(Page):
|
||||
if self._Screen.CurPage() == self:
|
||||
if self._Downloader.isFinished():
|
||||
if self._Downloader.isSuccessful():
|
||||
print("Success!")
|
||||
print("Download Success!")
|
||||
# Do something with obj.get_dest()
|
||||
filename = os.path.basename(self._Downloader.get_dest())
|
||||
cur_dir = os.getcwd()
|
||||
@ -115,7 +115,8 @@ class DownloadProcessPage(Page):
|
||||
os.system( "tar xf " + filename)
|
||||
os.system( "rm -rf " + filename)
|
||||
|
||||
os.chdir(cur_dir)
|
||||
os.chdir(cur_dir)
|
||||
self.DownloadPostJob()
|
||||
self.ReturnToUpLevelPage()
|
||||
self._Screen.Draw()
|
||||
self._Screen.SwapAndShow()
|
||||
@ -160,12 +161,12 @@ class DownloadProcessPage(Page):
|
||||
|
||||
arr = self._URL.rsplit('/', 1)
|
||||
if len(arr) > 1:
|
||||
downloaded_filename = arr[1]
|
||||
try:
|
||||
os.chdir(os.path.join(cur_dir,"patches",downloaded_filename)
|
||||
os.system("/bin/sh Run.sh")
|
||||
except:
|
||||
pass
|
||||
downloaded_filename = arr[1]
|
||||
try:
|
||||
os.chdir(os.path.join(cur_dir,"patches",downloaded_filename))
|
||||
os.system("/bin/sh Run.sh")
|
||||
except:
|
||||
pass
|
||||
|
||||
os.chdir(cur_dir)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user