Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-deposit
Commits
3e26744a
Verified
Commit
3e26744a
authored
Feb 4, 2019
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
swh/manage: Fix flake8 warning
parent
8f92f183
Branches
Branches containing commit
Tags
v0.0.65
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
swh/deposit/api/private/deposit_read.py
+2
-2
2 additions, 2 deletions
swh/deposit/api/private/deposit_read.py
swh/manage.py
+4
-5
4 additions, 5 deletions
swh/manage.py
with
6 additions
and
7 deletions
swh/deposit/api/private/deposit_read.py
+
2
−
2
View file @
3e26744a
...
...
@@ -34,8 +34,8 @@ def aggregate_tarballs(extraction_dir, archive_paths):
Tuple (directory to clean up, archive path (aggregated or not))
"""
if
len
(
archive_paths
)
>
1
:
# need to rebuild one archive
#
from multiple ones
if
len
(
archive_paths
)
>
1
:
# need to rebuild one archive
from multiple ones
os
.
makedirs
(
extraction_dir
,
0o755
,
exist_ok
=
True
)
dir_path
=
tempfile
.
mkdtemp
(
prefix
=
'
swh.deposit-
'
,
dir
=
extraction_dir
)
...
...
This diff is collapsed.
Click to expand it.
swh/manage.py
+
4
−
5
View file @
3e26744a
...
...
@@ -19,15 +19,14 @@ DEFAULT_CONFIG = {
if
__name__
==
"
__main__
"
:
settings_file
=
'
development
'
if
sys
.
argv
[
1
]
==
'
runserver
'
:
# override the default host:port
# for the 'runserver' task
if
sys
.
argv
[
1
]
==
'
runserver
'
:
# override the default host:port for the 'runserver' task
conf
=
config
.
load_named_config
(
'
deposit/server
'
,
default_conf
=
DEFAULT_CONFIG
)
extra_cmd
=
[
'
%s:%s
'
%
(
conf
[
'
host
'
],
conf
[
'
port
'
])]
cmd
=
sys
.
argv
+
extra_cmd
elif
sys
.
argv
[
1
]
==
'
test
'
:
# override the default settings file
#
to read in testing mode
elif
sys
.
argv
[
1
]
==
'
test
'
:
# override the default settings file
to read in testing mode
settings_file
=
'
testing
'
cmd
=
sys
.
argv
else
:
# otherwise, do nothing
...
...
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