From a7161e3ca775d4f5e7c74f50dc03cc7214caa181 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Wed, 6 Apr 2011 04:40:05 -0400 Subject: [PATCH] Changed comparison in initial check to <=, a cib with an equal mtime could not have been converted from an IB file, it would have a later mtime. --- Tools/nib2cib/main.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/nib2cib/main.j b/Tools/nib2cib/main.j index 6de188ae6..4102d29ae 100644 --- a/Tools/nib2cib/main.j +++ b/Tools/nib2cib/main.j @@ -160,13 +160,13 @@ function watch(options) count = nibs.length; // First time through only IB files with no corresponding cib - // or a cib with an earlier mtime are converted. + // or a cib with an earlier or equal mtime are converted. while (count--) { var nib = nibs[count], cib = nib.substr(0, nib.length - 4) + ".cib"; - if (FILE.exists(cib) && (FILE.mtime(nib) - FILE.mtime(cib)) < 0) + if (FILE.exists(cib) && (FILE.mtime(nib) - FILE.mtime(cib)) <= 0) nibInfo[nib] = FILE.mtime(nib); }