From: Jonathan Rajotte Date: Mon, 3 Dec 2018 19:11:33 +0000 (-0500) Subject: Rootfs: remove intermediary tar file X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e206006cfcff03c5287f9633a978282ef66e66d;p=lttng-ci.git Rootfs: remove intermediary tar file Signed-off-by: Jonathan Rajotte --- diff --git a/lava/rootfs/vmdeboostrap/generate-root.py b/lava/rootfs/vmdeboostrap/generate-root.py index 1ab54e8..4f445f5 100755 --- a/lava/rootfs/vmdeboostrap/generate-root.py +++ b/lava/rootfs/vmdeboostrap/generate-root.py @@ -14,17 +14,20 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import subprocess import argparse -from datetime import datetime import gzip +import os import shutil +import subprocess + +from datetime import datetime def compress(filename): with open(filename, 'rb') as f_in: with gzip.open('{}.gz'.format(filename), 'wb') as f_out: shutil.copyfileobj(f_in, f_out) + os.remove(filename) packages = [