Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
b6dad7c6
Commit
b6dad7c6
authored
May 23, 2018
by
Theophile GENTILHOMME
Browse files
[cache] Change according to 1.4.x branch
Test was failling previously
parent
3f1a85db
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/cache.py
View file @
b6dad7c6
...
@@ -78,13 +78,7 @@ def clear(ctx):
...
@@ -78,13 +78,7 @@ def clear(ctx):
if
os
.
path
.
isdir
(
ctx
.
meta
[
'config'
].
cache
):
if
os
.
path
.
isdir
(
ctx
.
meta
[
'config'
].
cache
):
for
k
in
os
.
listdir
(
ctx
.
meta
[
'config'
].
cache
):
for
k
in
os
.
listdir
(
ctx
.
meta
[
'config'
].
cache
):
p
=
os
.
path
.
join
(
ctx
.
meta
[
'config'
].
cache
,
k
)
p
=
os
.
path
.
join
(
ctx
.
meta
[
'config'
].
cache
,
k
)
if
os
.
path
.
isfile
(
p
):
shutil
.
rmtree
(
p
)
shutil
.
rmtree
(
p
)
else
:
raise
click
.
ClickException
(
"Failed to clear cache %s."
%
p
)
else
:
raise
click
.
ClickException
(
"Cache directory does not exist: %s"
%
ctx
.
meta
[
'config'
].
cache
)
@
cache
.
command
()
@
cache
.
command
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment