mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Added finished time
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
6f8d8ab04d
commit
e39ea72600
3 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
## slpkg - ChangeLog
|
||||
|
||||
### 5.1.3 - 19/09/2024
|
||||
### 5.1.3 - 26/09/2024
|
||||
|
||||
- Fixed:
|
||||
* Fixed ascii characters done and failed
|
||||
|
@ -10,6 +10,7 @@
|
|||
|
||||
- Added:
|
||||
* Added to support git repositories
|
||||
* Added finished time for update
|
||||
|
||||
### 5.1.2 - 22/08/2024
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from signal import signal, SIGPIPE, SIG_DFL
|
||||
|
@ -437,8 +438,11 @@ class Menu(Configs): # pylint: disable=[R0902]
|
|||
check = CheckUpdates(self.flags, self.repository)
|
||||
check.updates()
|
||||
else:
|
||||
start: float = time.time()
|
||||
update = UpdateRepositories(self.flags, self.repository)
|
||||
update.repositories()
|
||||
elapsed_time: float = time.time() - start
|
||||
self.utils.finished_time(elapsed_time)
|
||||
raise SystemExit(0)
|
||||
self.usage.help_short(1)
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ class Utilities(Configs):
|
|||
Args:
|
||||
elapsed_time (float): Unformatted time.
|
||||
"""
|
||||
print('\nFinished:', time.strftime('%H:%M:%S', time.gmtime(elapsed_time)))
|
||||
print('Finished:', time.strftime('%H:%M:%S', time.gmtime(elapsed_time)))
|
||||
|
||||
@staticmethod
|
||||
def is_option(options: tuple, flags: list) -> bool:
|
||||
|
|
Loading…
Reference in a new issue