batchfetch 1.3.2__tar.gz → 1.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {batchfetch-1.3.2 → batchfetch-1.3.3}/PKG-INFO +1 -1
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch/batchfetch_base.py +7 -8
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/PKG-INFO +1 -1
- {batchfetch-1.3.2 → batchfetch-1.3.3}/setup.py +1 -1
- {batchfetch-1.3.2 → batchfetch-1.3.3}/LICENSE +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/README.md +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch/__init__.py +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch/batchfetch_cli.py +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch/batchfetch_git.py +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch/helpers.py +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/SOURCES.txt +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/dependency_links.txt +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/entry_points.txt +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/requires.txt +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/batchfetch.egg-info/top_level.txt +0 -0
- {batchfetch-1.3.2 → batchfetch-1.3.3}/setup.cfg +0 -0
|
@@ -88,9 +88,6 @@ class TaskBase:
|
|
|
88
88
|
if key in self.options:
|
|
89
89
|
return self.options[key]
|
|
90
90
|
|
|
91
|
-
if key in self.global_options_values:
|
|
92
|
-
return self.global_options_values[key]
|
|
93
|
-
|
|
94
91
|
raise KeyError(f"The item '{key}' was not found in '{self.values}")
|
|
95
92
|
|
|
96
93
|
|
|
@@ -98,9 +95,9 @@ class TaskBatchFetch(TaskBase):
|
|
|
98
95
|
"""Plugin downloader base class."""
|
|
99
96
|
|
|
100
97
|
def __init__(self, data: Dict[str, Any], options: Dict[str, Any]):
|
|
101
|
-
new_options = {"exec_before": [],
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
new_options: Dict[str, Any] = {"exec_before": [],
|
|
99
|
+
"exec_after": [],
|
|
100
|
+
"ignore_untracked": []}
|
|
104
101
|
new_options.update(options)
|
|
105
102
|
options = new_options
|
|
106
103
|
|
|
@@ -160,7 +157,8 @@ class TaskBatchFetch(TaskBase):
|
|
|
160
157
|
self._local_task_exec(cmd, cwd=str(cwd))
|
|
161
158
|
|
|
162
159
|
# Local
|
|
163
|
-
cmd = self["exec_before"]
|
|
160
|
+
cmd = self._item_values["exec_before"] if "exec_before" \
|
|
161
|
+
in self._item_values else None
|
|
164
162
|
if cmd:
|
|
165
163
|
self._local_task_exec(cmd, cwd=str(cwd))
|
|
166
164
|
|
|
@@ -176,7 +174,8 @@ class TaskBatchFetch(TaskBase):
|
|
|
176
174
|
self._local_task_exec(cmd, cwd=str(cwd))
|
|
177
175
|
|
|
178
176
|
# Local
|
|
179
|
-
cmd = self["exec_after"]
|
|
177
|
+
cmd = self._item_values["exec_after"] if "exec_after" \
|
|
178
|
+
in self._item_values else None
|
|
180
179
|
if cmd:
|
|
181
180
|
self._local_task_exec(cmd, cwd=str(cwd))
|
|
182
181
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|