mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fd06b97d9d
commit
12882d2a99
@ -157,9 +157,12 @@ class VMInstaller(Command):
|
|||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
subprocess.call(['chmod', '-R', '+r', 'recipes'])
|
subprocess.call(['chmod', '-R', '+r', 'recipes'])
|
||||||
|
start_time = time.time()
|
||||||
self.start_vm()
|
self.start_vm()
|
||||||
|
startup_time = time.time() - start_time
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
self.run_vm_builder()
|
self.run_vm_builder()
|
||||||
|
print ('Startup completed in %d seconds' % round(startup_time))
|
||||||
print ('Build completed in %d seconds' % round(time.time() - start_time))
|
print ('Build completed in %d seconds' % round(time.time() - start_time))
|
||||||
if not opts.dont_shutdown:
|
if not opts.dont_shutdown:
|
||||||
print ('Shutting down', self.VM_NAME)
|
print ('Shutting down', self.VM_NAME)
|
||||||
|
@ -282,7 +282,7 @@ class LinuxFreeze(Command):
|
|||||||
os.rename(dist, ans)
|
os.rename(dist, ans)
|
||||||
else:
|
else:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
subprocess.check_call(['xz', '-f', '-9', dist])
|
subprocess.check_call(['xz', '--threads=0', '-f', '-9', dist])
|
||||||
self.info('Compressed in %d seconds' % round(time.time() - start_time))
|
self.info('Compressed in %d seconds' % round(time.time() - start_time))
|
||||||
os.rename(dist + '.xz', ans)
|
os.rename(dist + '.xz', ans)
|
||||||
self.info('Archive %s created: %.2f MB'%(
|
self.info('Archive %s created: %.2f MB'%(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user