mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 23:15:37 +08:00
Add missing "files_from" source type, fixes #121
This commit is contained in:
parent
e1c191bec1
commit
9a9a81ac69
1 changed files with 5 additions and 2 deletions
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.gui.core.runner"
|
|||
__author__ = "Orsiris de Jong"
|
||||
__copyright__ = "Copyright (C) 2022-2025 NetInvent"
|
||||
__license__ = "GPL-3.0-only"
|
||||
__build__ = "2024122401"
|
||||
__build__ = "2025021201"
|
||||
|
||||
|
||||
from typing import Optional, Callable, Union, List
|
||||
|
@ -1112,6 +1112,7 @@ class NPBackupRunner:
|
|||
if source_type in (
|
||||
None,
|
||||
"folder_list",
|
||||
"files_from",
|
||||
"files_from_verbatim",
|
||||
"files_from_raw",
|
||||
):
|
||||
|
@ -1215,6 +1216,7 @@ class NPBackupRunner:
|
|||
if source_type in (
|
||||
None,
|
||||
"folder_list",
|
||||
"files_from",
|
||||
"files_from_verbatim",
|
||||
"files_from_raw",
|
||||
):
|
||||
|
@ -1239,7 +1241,7 @@ class NPBackupRunner:
|
|||
level="info",
|
||||
)
|
||||
else:
|
||||
raise ValueError("Unknown source type given")
|
||||
raise ValueError(f"Unknown source type given: {source_type}")
|
||||
|
||||
def _exec_commands(
|
||||
exec_type: str,
|
||||
|
@ -1288,6 +1290,7 @@ class NPBackupRunner:
|
|||
if source_type in (
|
||||
None,
|
||||
"folder_list",
|
||||
"files_from",
|
||||
"files_from_verbatim",
|
||||
"files_from_raw",
|
||||
):
|
||||
|
|
Loading…
Add table
Reference in a new issue