Skip to content

Commit f2aa3d7

Browse files
committedMay 20, 2013
fix less bundle autogeneration
1 parent a7e5345 commit f2aa3d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎pyramid_amdjs/less.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def build_less_bundle(name, intr, registry):
9797
tpath = os.path.join(cache_dir, tname)
9898
if os.path.exists(tpath):
9999
# check for changes
100-
if debug and files_changed(os.path.getmtime(tpath), intr['watchdir']):
100+
if (('md5' not in intr and
101+
files_changed(os.path.getmtime(tpath), intr['watchdir'])) or
102+
(debug and
103+
files_changed(os.path.getmtime(tpath), intr['watchdir']))):
101104
log.info('Compiling less bundle: %s', name)
102105
bundle = compile_less(
103106
name, intr['abs_path'], node_path, cache_dir, not debug)

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
from setuptools import setup, find_packages
44

5-
version = '0.6.0'
5+
version = '0.6.0dev1'
66

77
install_requires = ['setuptools',
88
'pyramid >= 1.4']

0 commit comments

Comments
 (0)
Please sign in to comment.