add frappy to the repos to update to gitea
This commit is contained in:
5
gitea.py
5
gitea.py
@ -3,7 +3,7 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
GITEA_REPOS = ['boxtools']
|
GITEA_REPOS = ['boxtools', 'frappy']
|
||||||
GITEA_URL = 'https://gitea.psi.ch/linse/%s.git'
|
GITEA_URL = 'https://gitea.psi.ch/linse/%s.git'
|
||||||
|
|
||||||
GET_GITEA_TOKEN = """#!/bin/bash
|
GET_GITEA_TOKEN = """#!/bin/bash
|
||||||
@ -46,6 +46,7 @@ else
|
|||||||
fi
|
fi
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def write_when_new(doit, filename, content, executable=False):
|
def write_when_new(doit, filename, content, executable=False):
|
||||||
newmode = 0o755 if executable else 0o644
|
newmode = 0o755 if executable else 0o644
|
||||||
if content is None:
|
if content is None:
|
||||||
@ -122,4 +123,4 @@ if __name__ == '__main__':
|
|||||||
change_to_gitea(True)
|
change_to_gitea(True)
|
||||||
else:
|
else:
|
||||||
change_to_gitea(False)
|
change_to_gitea(False)
|
||||||
print(f'\nUsage: pyhton gitea.py y # to update repos {" ".join(GITEA_REPOS)}\n')
|
print(f'\nUsage: python gitea.py y # to update repos {" ".join(GITEA_REPOS)}\n')
|
||||||
|
Reference in New Issue
Block a user