We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3122e commit 8ddcd54Copy full SHA for 8ddcd54
bin/archive.py
@@ -78,15 +78,19 @@ def set_readonly(path):
78
subprocess.run(["b2sum", *files_list], stdout=tmpf, check=True)
79
subprocess.run(
80
["gpg", "-as", "--clearsign", "-u", KEYID, "-o", checksum_path, tmpf.name],
81
- check=True
+ check=True,
82
)
83
set_readonly(checksum_path)
84
set_readonly(".")
85
86
# Create encrypted tarball
87
tarball_path = os.path.join(out_dir, f"{IDENT}.archive")
88
with tempfile.NamedTemporaryFile(dir=out_dir) as tmpf:
89
- subprocess.run(["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True)
90
- subprocess.run(["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True)
+ subprocess.run(
+ ["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True
91
+ )
92
93
+ ["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True
94
95
set_readonly(tarball_path)
96
print(f"Encrypted archive: {tarball_path}")
0 commit comments