Partially revert unpacking stage in AppMgr
This commit is contained in:
parent
a339c8e8ff
commit
237342254f
@ -32,7 +32,7 @@ class ActionItem:
|
|||||||
|
|
||||||
class InstallItem:
|
class InstallItem:
|
||||||
def __init__(self, total):
|
def __init__(self, total):
|
||||||
# Stage 0 = download, 1 = unpack, 2 = deps install, 3 = app install
|
# Stage 0 = download, 1 = deps install, 2 = app install
|
||||||
self.stage = 0
|
self.stage = 0
|
||||||
self.total = total
|
self.total = total
|
||||||
self.downloaded = 0
|
self.downloaded = 0
|
||||||
@ -110,12 +110,10 @@ class AppMgr:
|
|||||||
for dep in deps:
|
for dep in deps:
|
||||||
self.download_package(dep, item.data)
|
self.download_package(dep, item.data)
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
item.data.stage = 1
|
item.data.stage = 2 if dep == deps[-1] else 1
|
||||||
# Purge old data before unpacking to clean previous failed installation
|
# Purge old data before unpacking to clean previous failed installation
|
||||||
self.purge_package(dep)
|
self.purge_package(dep)
|
||||||
self.unpack_package(dep)
|
self.unpack_package(dep)
|
||||||
for deps in deps:
|
|
||||||
item.data.stage = 3 if dep == deps[-1] else 2
|
|
||||||
# Run uninstall script before installation to clean previous failed installation
|
# Run uninstall script before installation to clean previous failed installation
|
||||||
self.run_uninstall_script(dep)
|
self.run_uninstall_script(dep)
|
||||||
self.register_package(dep)
|
self.register_package(dep)
|
||||||
|
@ -184,8 +184,6 @@ class WSGIApp(object):
|
|||||||
if item.data.stage == 0:
|
if item.data.stage == 0:
|
||||||
status = 'Stahuje se ({} %)'.format(item.data)
|
status = 'Stahuje se ({} %)'.format(item.data)
|
||||||
elif item.data.stage == 1:
|
elif item.data.stage == 1:
|
||||||
status = 'Rozbaluje se'
|
|
||||||
elif item.data.stage == 2:
|
|
||||||
status = 'Instalují se závislosti'
|
status = 'Instalují se závislosti'
|
||||||
else:
|
else:
|
||||||
status = 'Instaluje se'
|
status = 'Instaluje se'
|
||||||
|
Loading…
Reference in New Issue
Block a user