From f76e7cce5f68df3a2fa7874dcb6b0b1cd60d4fa3 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Fri, 22 Feb 2013 21:06:38 -0500
Subject: [PATCH] MAINT-2328: Mac updater should not clear (part of) viewer
 cache. Remove the offending code.

---
 .../updater/scripts/darwin/update_install.py      | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/indra/viewer_components/updater/scripts/darwin/update_install.py b/indra/viewer_components/updater/scripts/darwin/update_install.py
index 3402f90a2ae..25efc2b0bc5 100755
--- a/indra/viewer_components/updater/scripts/darwin/update_install.py
+++ b/indra/viewer_components/updater/scripts/darwin/update_install.py
@@ -287,21 +287,6 @@ def fail(message):
                 # let our previously-set sys.excepthook handle this
                 raise type, value, traceback
 
-            status("Clearing cache...")
-
-            # We don't know whether the previous viewer was old-style or
-            # new-style (Cocoa). Clear both kinds of caches.
-            for cachesubdir in "SecondLife", BUNDLE_IDENTIFIER:
-                wildcard = "~/Library/Caches/%s/*" % cachesubdir
-                log("rm " + wildcard)
-                for f in glob.glob(os.path.expanduser(wildcard)):
-                    # Don't try to remove subdirs this way
-                    if os.path.isfile(f):
-                        try:
-                            os.remove(f)
-                        except Exception, err:
-                            log("%s removing %s: %s" % (err.__class__.__name__, f, err))
-
             status("Cleaning up...")
 
             log("touch " + appdir)
-- 
GitLab