From 4b984f2583b05496585d8ed8cfab9f2dcb6827b8 Mon Sep 17 00:00:00 2001
From: Frantisek Sumsal <frantisek@sumsal.cz>
Date: Wed, 20 Mar 2024 17:14:46 +0100
Subject: [PATCH] Revert "fix(libkeyringctl): Adapt to CLI churn in sequoia-sq
0.34.0"
Drop this once we have sequoia-sq 0.34.0 in Fedora.
This reverts commit 10252b287d7d3bc338d0aa3e5d2e6c0fc6d1653d.
---
libkeyringctl/sequoia.py | 6 +++---
libkeyringctl/verify.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libkeyringctl/sequoia.py b/libkeyringctl/sequoia.py
index 34206a5..1e73149 100644
--- a/libkeyringctl/sequoia.py
+++ b/libkeyringctl/sequoia.py
@@ -49,7 +49,7 @@ def keyring_split(working_dir: Path, keyring: Path, preserve_filename: bool = Fa
keyring_dir = Path(mkdtemp(dir=working_dir, prefix="keyring-")).absolute()
with cwd(keyring_dir):
- system(["sq", "toolbox", "keyring", "split", str(keyring)])
+ system(["sq", "keyring", "split", str(keyring)])
keyrings: List[Path] = list(natural_sort_path(keyring_dir.iterdir()))
@@ -75,7 +75,7 @@ def keyring_merge(certificates: List[Path], output: Optional[Path] = None, force
The result if no output file has been used
"""
- cmd = ["sq", "toolbox", "keyring", "merge"]
+ cmd = ["sq", "keyring", "merge"]
if force:
cmd.insert(1, "--force")
if output:
@@ -103,7 +103,7 @@ def packet_split(working_dir: Path, certificate: Path) -> Iterable[Path]:
packet_dir = Path(mkdtemp(dir=working_dir, prefix="packet-")).absolute()
with cwd(packet_dir):
- system(["sq", "toolbox", "packet", "split", "--prefix", "''", str(certificate)])
+ system(["sq", "toolbox", "packet", "split", str(certificate)])
return natural_sort_path(packet_dir.iterdir())
diff --git a/libkeyringctl/verify.py b/libkeyringctl/verify.py
index 29c64d8..a0c582b 100644
--- a/libkeyringctl/verify.py
+++ b/libkeyringctl/verify.py
@@ -71,7 +71,7 @@ def verify( # noqa: ignore=C901
keyring_fd = Popen(("sq", "dearmor", f"{str(keyring_path)}"), stdout=PIPE)
print(system(["hokey", "lint"], _stdin=keyring_fd.stdout), end="")
if lint_sq_keyring:
- print(system(["sq", "toolbox", "keyring", "lint", f"{str(keyring_path)}"]), end="")
+ print(system(["sq", "keyring", "lint", f"{str(keyring_path)}"]), end="")
def verify_integrity(certificate: Path, all_fingerprints: Set[Fingerprint]) -> None: # noqa: ignore=C901
--
2.44.0