[Pkg-mozext-commits] [itsalltext] 145/459: * fixed race in debug() method. * fixed case where dangling temp symlinks cause errors in cleanup.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 7e4cf7e5c024752fb2411bcb49b6d7c3b0a12022
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Thu Feb 15 16:33:21 2007 -0500

    * fixed race in debug() method.
    * fixed case where dangling temp symlinks cause errors in cleanup.
---
 chrome/content/itsalltext.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/itsalltext.js b/chrome/content/itsalltext.js
index c83752c..5d88b43 100644
--- a/chrome/content/itsalltext.js
+++ b/chrome/content/itsalltext.js
@@ -149,7 +149,7 @@ var ItsAllText = function() {
         while (entries.hasMoreElements()) {
             var entry = entries.getNext();
             entry.QueryInterface(Components.interfaces.nsIFile);
-            if(force || entry.lastModifiedTime < last_week) {
+            if(force || !entry.exists() || entry.lastModifiedTime < last_week){
                 try{
                     entry.remove(false);
                 } catch(e) {
@@ -172,6 +172,8 @@ var ItsAllText = function() {
      * @type Hash
      */
     that.preferences = {
+        debug: true,
+
         /**
          * Fetches the current value of the preference.
          * @private

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list