extension manager fixes

This commit is contained in:
Vladimir Mandic
2023-05-14 11:22:12 -04:00
parent 44b31a2d6b
commit 77eae443b5
3 changed files with 20 additions and 6 deletions
+5 -1
View File
@@ -84,7 +84,11 @@ class Extension:
return res
def check_updates(self):
repo = git.Repo(self.path)
try:
repo = git.Repo(self.path)
except:
self.can_update = False
return
for fetch in repo.remote().fetch(dry_run=True):
if fetch.flags != fetch.HEAD_UPTODATE:
self.can_update = True