test .gitlab_ci.yml

This commit is contained in:
Bullet64 2023-02-05 16:46:49 +01:00
parent 5e3dd712dd
commit 3413ddcdfd
2 changed files with 11 additions and 9 deletions

18
main.py
View file

@ -1035,13 +1035,10 @@ def main(): # PyWebIO application function
return
if path:
print("Ja, hat Inhalt", path['path'])
p = Path(path['path']+'/config')
p2 = Path(path['path'])
print("p2", p2)
if p.exists():
print('Source path exist', p)
config_path = Path(path['path']+'/config')
repo_path = Path(path['path'])
if config_path.exists():
pass
else:
put_error('Source path does not contain an restic repo')
return
@ -1064,7 +1061,7 @@ def main(): # PyWebIO application function
try:
args = ['restic',
'-r',
p2,
repo_path,
'snapshots']
result = subprocess.run(args,
@ -1087,7 +1084,7 @@ def main(): # PyWebIO application function
pass
BackupList.add("Open_Repo",
str(p2),
str(repo_path),
"",
pass_word['pass_word'],
"1",
@ -1526,6 +1523,9 @@ def main(): # PyWebIO application function
case 'Delete':
# Delete entry?
if not backups[line - 1].source:
backups[line - 1].source = 'EMPTY'
form_delete = popup_input([
put_info(f"We don't delete your repository data. Please delete the data yourself."
f" Repo-Path is {backups[line - 1].source}"),

View file

@ -1,6 +1,7 @@
cffi==1.15.1
colorama==0.4.4
cryptography==38.0.1
flake8==6.0.0
globals==0.3.34
jaraco.classes==3.2.3
jeepney==0.8.0
@ -13,3 +14,4 @@ SecretStorage==3.3.3
tornado==6.2
ua-parser==0.16.1
user-agents==2.2.0