changeset 10:73d18f0cf8bb

fix serious bug where access time was used instead of modify time
author k0s <k0scist@gmail.com>
date Fri, 25 Dec 2009 19:26:23 -0500
parents 33349e5178b3
children 8353caad836c
files montage/formatters.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/montage/formatters.py	Fri Dec 25 18:56:23 2009 -0500
+++ b/montage/formatters.py	Fri Dec 25 19:26:23 2009 -0500
@@ -73,7 +73,7 @@
                     create_thumbnail = True
 
                 # ensure the original file has not been modified
-                if os.path.getatime(thumbnail_file) < os.path.getatime(filepath):
+                if os.path.getmtime(thumbnail_file) < os.path.getmtime(filepath):
                     create_thumbnail = True
             else:
                 # create a new thumbnail
--- a/setup.py	Fri Dec 25 18:56:23 2009 -0500
+++ b/setup.py	Fri Dec 25 19:26:23 2009 -0500
@@ -2,7 +2,7 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = '0.2.1'
+version = '0.2.2'
 
 setup(name='montage',
       version=version,