diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2025-01-13 13:07:41 +0100 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2025-01-17 13:36:54 +0100 |
commit | 32245e7007b4d7c039e83faa6834aa2787d51c7a (patch) | |
tree | e5bb02dae1e24e5f8032ef8fb0fdbaab5c23f2e0 /audio/beets/files/patch-beetsplug_ipfs.py | |
parent | devel/p5-Workflow: Update to 1.62 (diff) |
audio/beets: chase kubo -> kubo-go rename
This time, actually fix the command invocations in the source code.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
Diffstat (limited to 'audio/beets/files/patch-beetsplug_ipfs.py')
-rw-r--r-- | audio/beets/files/patch-beetsplug_ipfs.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/audio/beets/files/patch-beetsplug_ipfs.py b/audio/beets/files/patch-beetsplug_ipfs.py new file mode 100644 index 000000000000..a97325cf3417 --- /dev/null +++ b/audio/beets/files/patch-beetsplug_ipfs.py @@ -0,0 +1,44 @@ +--- beetsplug/ipfs.py.orig 2025-01-13 12:04:44 UTC ++++ beetsplug/ipfs.py +@@ -134,9 +134,9 @@ class IPFSPlugin(BeetsPlugin): + self._log.info("Adding {0} to ipfs", album_dir) + + if self.config["nocopy"]: +- cmd = "ipfs add --nocopy -q -r".split() ++ cmd = "kubo-go add --nocopy -q -r".split() + else: +- cmd = "ipfs add -q -r".split() ++ cmd = "kubo-go add -q -r".split() + cmd.append(album_dir) + try: + output = util.command_output(cmd).stdout.split() +@@ -178,7 +178,7 @@ class IPFSPlugin(BeetsPlugin): + + def ipfs_get_from_hash(self, lib, _hash): + try: +- cmd = "ipfs get".split() ++ cmd = "kubo-go get".split() + cmd.append(_hash) + util.command_output(cmd) + except (OSError, subprocess.CalledProcessError) as err: +@@ -202,9 +202,9 @@ class IPFSPlugin(BeetsPlugin): + self.ipfs_added_albums(lib, tmp.name) + try: + if self.config["nocopy"]: +- cmd = "ipfs add --nocopy -q ".split() ++ cmd = "kubo-go add --nocopy -q ".split() + else: +- cmd = "ipfs add -q ".split() ++ cmd = "kubo-go add -q ".split() + cmd.append(tmp.name) + output = util.command_output(cmd).stdout + except (OSError, subprocess.CalledProcessError) as err: +@@ -230,7 +230,7 @@ class IPFSPlugin(BeetsPlugin): + return False + path = os.path.join(remote_libs, lib_name.encode() + b".db") + if not os.path.exists(path): +- cmd = f"ipfs get {_hash} -o".split() ++ cmd = f"kubo-go get {_hash} -o".split() + cmd.append(path) + try: + util.command_output(cmd) |