From 74fc1dc888c9768d9bd42220e9398951f6fb4f8a Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 May 2020 10:57:06 +0200 Subject: [PATCH] Do not remove tmp dir anymore, as it's used by others too --- updater/updating.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/updater/updating.go b/updater/updating.go index 7ead3ab..3788eac 100644 --- a/updater/updating.go +++ b/updater/updating.go @@ -121,11 +121,5 @@ func (reg *ResourceRegistry) DownloadUpdates(ctx context.Context) error { } log.Infof("%s: finished downloading updates", reg.Name) - // remove tmp folder after we are finished - err = os.RemoveAll(reg.tmpDir.Path) - if err != nil { - log.Tracef("%s: failed to remove tmp dir %s after downloading updates: %s", reg.Name, reg.tmpDir.Path, err) - } - return nil }