[prev in list] [next in list] [prev in thread] [next in thread]
List: lxc-devel
Subject: [lxc-devel] [distrobuilder/master] Fix wiping of cache
From: stgraber on Github <lxc-bot () linuxcontainers ! org>
Date: 2019-07-27 23:22:52
Message-ID: 5d3cdccc.1c69fb81.87f1b.8cc4SMTPIN_ADDED_MISSING () mx ! google ! com
[Download RAW message or body]
[Attachment #2 (text/x-mailbox)]
The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/208
This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.
=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
[Attachment #3 (text/plain)]
From a6d6334999efe905f05c90b0f9661eff818a3d30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stéphane Graber?= <stgraber@ubuntu.com>
Date: Sat, 27 Jul 2019 19:22:33 -0400
Subject: [PATCH] Fix wiping of cache
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
---
distrobuilder/main.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/distrobuilder/main.go b/distrobuilder/main.go
index 2761737..2cb49d5 100644
--- a/distrobuilder/main.go
+++ b/distrobuilder/main.go
@@ -157,6 +157,7 @@ func (c *cmdGlobal) preRunBuild(cmd *cobra.Command, args []string) error {
// Clean up cache directory before doing anything
os.RemoveAll(c.flagCacheDir)
+ os.Mkdir(c.flagCacheDir, 0755)
if len(args) > 1 {
// Create and set target directory if provided
@@ -252,6 +253,7 @@ func (c *cmdGlobal) preRunPack(cmd *cobra.Command, args []string) error {
// Clean up cache directory before doing anything
os.RemoveAll(c.flagCacheDir)
+ os.Mkdir(c.flagCacheDir, 0755)
// resolve path
c.sourceDir, err = filepath.Abs(args[1])
[Attachment #4 (text/plain)]
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic