Rootfs: remove intermediary tar file
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 3 Dec 2018 19:11:33 +0000 (14:11 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 3 Dec 2018 19:11:33 +0000 (14:11 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lava/rootfs/vmdeboostrap/generate-root.py

index 1ab54e83e307ba52ff7f7d5d6a3ab81569297c5e..4f445f5c13171e887bc8cf4d5ecafe91cd35aa92 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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 = [
This page took 0.025378 seconds and 4 git commands to generate.