Rootfs: remove intermediary tar file
[lttng-ci.git] / 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.023553 seconds and 4 git commands to generate.