Compare commits
2 Commits
d69df23f40
...
7bb317751c
Author | SHA1 | Date | |
---|---|---|---|
7bb317751c | |||
ae529879d0 |
@ -27,12 +27,11 @@ def get_latest_git_mtime(repos: dict) -> float:
|
||||
def is_repo_status_outdated(repos):
|
||||
latest_mtime = get_latest_git_mtime(repos)
|
||||
last_mtime = 0
|
||||
if os.path.exists(filepath("mtime")):
|
||||
if os.path.exists(filepath("status")) and os.path.exists(filepath("mtime")):
|
||||
with open(filepath("mtime"), "rt") as fin:
|
||||
content = fin.read().strip()
|
||||
print(f"content: {content}")
|
||||
last_mtime = float(content)
|
||||
print(f"{latest_mtime} {last_mtime}")
|
||||
return latest_mtime > last_mtime
|
||||
|
||||
def to_keycap(ch: str) -> str:
|
||||
|
Loading…
x
Reference in New Issue
Block a user