install.py: include fixing gitea repo
This commit is contained in:
5
gitea.py
5
gitea.py
@ -64,6 +64,8 @@ def write_when_new(doit, filename, content):
|
||||
|
||||
|
||||
def change_to_gitea(doit, *repos):
|
||||
if not repos:
|
||||
repos = GITEA_REPOS
|
||||
dirty = False
|
||||
cwd = os.getcwd()
|
||||
try:
|
||||
@ -103,4 +105,5 @@ def change_to_gitea(doit, *repos):
|
||||
return dirty
|
||||
|
||||
|
||||
change_to_gitea(False, *GITEA_REPOS)
|
||||
if __name__ == '__main__':
|
||||
change_to_gitea(False)
|
||||
|
@ -596,10 +596,12 @@ def handle_config():
|
||||
displaycfg = config.get('DISPLAY')
|
||||
if displaycfg and display_update(displaycfg):
|
||||
to_start['display'] = 'restart'
|
||||
if change_to_gitea(doit):
|
||||
show.dirty = True
|
||||
except Exception as e:
|
||||
print('ERROR: can not handle %s %s: %r' % (box.hostname, ifname, e))
|
||||
raise
|
||||
return False
|
||||
# return False
|
||||
|
||||
reload_systemd = False
|
||||
for service, service_func in SERVICES.items():
|
||||
|
Reference in New Issue
Block a user