Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
poolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
sispub
datapool2
poolkit
Commits
4b38a3a4
Commit
4b38a3a4
authored
2 years ago
by
schmittu
Browse files
Options
Downloads
Patches
Plain Diff
fix update-operational: don't copy raw data files per default
parent
2e8d6aa6
Branches
hdf5_1_12_0
No related tags found
No related merge requests found
Pipeline
#10168
failed
2 years ago
Stage: style
Stage: test_code
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/poolkit/commands/update_operational.py
+13
-3
13 additions, 3 deletions
src/poolkit/commands/update_operational.py
with
13 additions
and
3 deletions
src/poolkit/commands/update_operational.py
+
13
−
3
View file @
4b38a3a4
...
...
@@ -15,7 +15,7 @@ from poolkit.landing_zone import (
write_lock
,
)
from
poolkit.utils
import
is_server_running
from
poolkit.yaml
import
sort_for_update_operational
from
poolkit.yaml
import
RawDataFile
,
find_entity
,
sort_for_update_operational
from
.check
import
_check
,
_check_rename
...
...
@@ -182,7 +182,11 @@ def _update_operational(
try
:
num_files
+=
_update
(
operational_landing_zone
,
development_landing_zone
,
print_ok
,
delay
operational_landing_zone
,
development_landing_zone
,
print_ok
,
delay
,
copy_raw
,
)
except
DataPoolException
as
e
:
print_err
(
"
- update failed:
"
)
...
...
@@ -198,9 +202,15 @@ def _update_operational(
return
0
def
_update
(
operational_landing_zone
,
development_landing_zone
,
print_ok
,
delay
):
def
_update
(
operational_landing_zone
,
development_landing_zone
,
print_ok
,
delay
,
copy_raw
):
to_update
=
list_new_or_changed_files
(
development_landing_zone
)
for
rel_path
in
sort_for_update_operational
(
development_landing_zone
,
to_update
):
entity
=
find_entity
(
rel_path
)
if
isinstance
(
entity
,
RawDataFile
)
and
not
copy_raw
:
continue
target
=
operational_landing_zone
/
rel_path
target
.
parent
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
target
.
parent
.
chmod
(
0o777
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment