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
313621c2
Commit
313621c2
authored
Aug 19, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix synccompress trouble when using PIPELINE_AUTO=False
parent
cd5f1195
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
pipeline/management/commands/synccompress.py
+1
-0
pipeline/packager.py
+3
-2
No files found.
pipeline/management/commands/synccompress.py
View file @
313621c2
...
...
@@ -17,6 +17,7 @@ class Command(NoArgsCommand):
def
handle_noargs
(
self
,
**
options
):
from
pipeline.packager
import
Packager
packager
=
Packager
(
sync
=
True
,
force
=
options
.
get
(
'force'
,
False
),
verbose
=
int
(
options
.
get
(
'verbosity'
,
1
))
>=
2
)
...
...
pipeline/packager.py
View file @
313621c2
...
...
@@ -11,9 +11,10 @@ from pipeline.versioning import Versioning
class
Packager
(
object
):
def
__init__
(
self
,
force
=
False
,
verbose
=
False
,
css_packages
=
None
,
js_packages
=
None
):
def
__init__
(
self
,
force
=
False
,
sync
=
False
,
verbose
=
False
,
css_packages
=
None
,
js_packages
=
None
):
self
.
force
=
force
self
.
verbose
=
verbose
self
.
sync
=
sync
self
.
compressor
=
Compressor
(
verbose
)
self
.
versioning
=
Versioning
(
verbose
)
self
.
compiler
=
Compiler
(
verbose
)
...
...
@@ -49,7 +50,7 @@ class Packager(object):
return
self
.
compiler
.
compile
(
paths
)
def
pack
(
self
,
package
,
compress
,
signal
,
**
kwargs
):
if
settings
.
PIPELINE_AUTO
or
self
.
force
:
if
settings
.
PIPELINE_AUTO
or
self
.
force
or
self
.
sync
:
need_update
,
version
=
self
.
versioning
.
need_update
(
package
[
'output'
],
package
[
'paths'
])
if
need_update
or
self
.
force
:
...
...
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