Skip to content

Commit

Permalink
Release: Create pbuilder image with "codename.tgz" directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhayen committed Dec 27, 2019
1 parent 8e518bf commit e8a0db0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/create-pbuilder-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@
with open("chroot/etc/apt.conf.d/75mine", "w") as output_file:
output_file.write('Acquire::Languages "none";\n')

subprocess.check_call(["tar", "czf", "chroot.tgz", "-C", "chroot", "."])
target_filename = codename + ".tgz"
subprocess.check_call(["tar", "czf", target_filename, "-C", "chroot", "."])

shutil.copy("chroot.tgz", os.path.join(start_dir, output))
shutil.copy(target_filename, os.path.join(start_dir, output))
finally:
os.chdir(start_dir)
shutil.rmtree(stage)

0 comments on commit e8a0db0

Please sign in to comment.