Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
ef29f10e
Commit
ef29f10e
authored
Mar 14, 2014
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #322 from newscred/fix-path-error
check path first
parents
6a186b9b
fb7f9c47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
pipeline/storage.py
+10
-9
No files found.
pipeline/storage.py
View file @
ef29f10e
...
...
@@ -74,15 +74,16 @@ class GZIPMixin(object):
return
for
path
in
paths
:
if
path
and
not
matches_patterns
(
path
,
self
.
gzip_patterns
):
continue
original_file
=
self
.
open
(
path
)
gzipped_path
=
"{0}.gz"
.
format
(
path
)
if
self
.
exists
(
gzipped_path
):
self
.
delete
(
gzipped_path
)
gzipped_file
=
self
.
_compress
(
original_file
)
gzipped_path
=
self
.
save
(
gzipped_path
,
gzipped_file
)
yield
gzipped_path
,
gzipped_path
,
True
if
path
:
if
not
matches_patterns
(
path
,
self
.
gzip_patterns
):
continue
original_file
=
self
.
open
(
path
)
gzipped_path
=
"{0}.gz"
.
format
(
path
)
if
self
.
exists
(
gzipped_path
):
self
.
delete
(
gzipped_path
)
gzipped_file
=
self
.
_compress
(
original_file
)
gzipped_path
=
self
.
save
(
gzipped_path
,
gzipped_file
)
yield
gzipped_path
,
gzipped_path
,
True
class
NonPackagingMixin
(
object
):
...
...
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