[arch] improvement -> AUR: upgrade checking now considers modification dates as well

This commit is contained in:
Vinicius Moreira
2020-12-17 18:35:34 -03:00
parent 4540fc938e
commit cf17a91b83
32 changed files with 432 additions and 149 deletions

View File

@@ -1,4 +1,4 @@
import collections
from datetime import datetime
def deep_update(source: dict, overrides: dict):
@@ -26,3 +26,7 @@ def size_to_byte(size: float, unit: str) -> int:
final_size = size * 1000000000000000
return int(final_size)
def datetime_as_milis(date: datetime) -> int:
return int(round(date.timestamp() * 1000))