Skip to content

Commit 222e7b5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d0d0c96 commit 222e7b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/archive.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,19 @@ def set_readonly(path):
7878
subprocess.run(["b2sum", *files_list], stdout=tmpf, check=True)
7979
subprocess.run(
8080
["gpg", "-as", "--clearsign", "-u", KEYID, "-o", checksum_path, tmpf.name],
81-
check=True
81+
check=True,
8282
)
8383
set_readonly(checksum_path)
8484
set_readonly(".")
8585

8686
# Create encrypted tarball
8787
tarball_path = os.path.join(out_dir, f"{IDENT}.archive")
8888
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)
89+
subprocess.run(
90+
["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True
91+
)
92+
subprocess.run(
93+
["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True
94+
)
9195
set_readonly(tarball_path)
9296
print(f"Encrypted archive: {tarball_path}")

0 commit comments

Comments
 (0)