From: Mike Hommey <mh@glandium.org>
Date: Mon, 11 Jan 2010 11:01:36 +0100
Subject: Avoid creating the updates directory when update service is disabled

https://bugzilla.mozilla.org/show_bug.cgi?id=538933
---
 toolkit/mozapps/update/src/nsUpdateService.js.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/toolkit/mozapps/update/src/nsUpdateService.js.in b/toolkit/mozapps/update/src/nsUpdateService.js.in
index f7994f4..2e9b656 100644
--- a/toolkit/mozapps/update/src/nsUpdateService.js.in
+++ b/toolkit/mozapps/update/src/nsUpdateService.js.in
@@ -1813,7 +1813,7 @@ UpdateService.prototype = {
    * See nsIUpdateService.idl
    */
   get canUpdate() {
-    return gCanApplyUpdates && gCanCheckForUpdates;
+    return gCanCheckForUpdates && gCanApplyUpdates;
   },
 
   /**
