commit 83cd60192d156450bf7472f1d7c63a5ca12ecebc
Author: Yawning Angel <yawn...@schwanenlied.me>
Date:   Thu Dec 1 19:24:05 2016 +0000

    Remove the tor DataDir on (re)install.
---
 src/cmd/sandboxed-tor-browser/internal/ui/install.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/cmd/sandboxed-tor-browser/internal/ui/install.go 
b/src/cmd/sandboxed-tor-browser/internal/ui/install.go
index 5680319..e8858b4 100644
--- a/src/cmd/sandboxed-tor-browser/internal/ui/install.go
+++ b/src/cmd/sandboxed-tor-browser/internal/ui/install.go
@@ -23,6 +23,7 @@ import (
        "fmt"
        "io/ioutil"
        "log"
+       "os"
        "path/filepath"
        "runtime"
        "time"
@@ -120,6 +121,8 @@ func (c *Common) DoInstall(async *Async) {
        log.Printf("install: Installing Tor Browser.")
        async.UpdateProgress("Installing Tor Browser.")
 
+       os.RemoveAll(c.Cfg.TorDataDir) // Remove the tor directory.
+
        if err := installer.ExtractBundle(c.Cfg.BundleInstallDir, bundleTarXz, 
async.Cancel); err != nil {
                async.Err = err
                if async.Err == installer.ErrExtractionCanceled {

_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to