aboutsummaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 23:53:00 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 23:53:00 +0000
commit53432739210f598d638aa21f4679a62703ef6168 (patch)
tree738a4b84c6e68474ff99e24dd7d7f0d33e592623 /net-p2p
parent43d8ed5f9ab125833534ba207c5ec56280cfd8b6 (diff)
downloadports-53432739210f598d638aa21f4679a62703ef6168.tar.gz
ports-53432739210f598d638aa21f4679a62703ef6168.zip
- Fix patch file
PR: 252438 Reported by: dsh at bamus.cz
Notes
Notes: svn path=/head/; revision=560650
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission-remote-gui/files/patch-rpc.pas12
1 files changed, 7 insertions, 5 deletions
diff --git a/net-p2p/transmission-remote-gui/files/patch-rpc.pas b/net-p2p/transmission-remote-gui/files/patch-rpc.pas
index 30f902cad024..7321ec82299b 100644
--- a/net-p2p/transmission-remote-gui/files/patch-rpc.pas
+++ b/net-p2p/transmission-remote-gui/files/patch-rpc.pas
@@ -1,6 +1,6 @@
---- rpc.pas.orig 2020-12-27 23:03:22.112873000 -0500
-+++ rpc.pas 2020-12-27 23:05:37.172555000 -0500
-@@ -805,6 +805,7 @@
+--- rpc.pas 2019-10-12 00:52:07.000000000 -0500
++++ rpc.pas 2021-01-06 18:48:06.854420000 -0500
+@@ -805,21 +805,32 @@
req, args: TJSONObject;
_fields: TJSONArray;
i: integer;
@@ -8,7 +8,9 @@
begin
Result:=nil;
req:=TJSONObject.Create;
-@@ -813,13 +814,22 @@
++ sl:=TStringList.Create;
+ try
+ req.Add('method', 'torrent-get');
args:=TJSONObject.Create;
if TorrentId <> 0 then
args.Add('ids', TJSONArray.Create([TorrentId]));
@@ -25,7 +27,7 @@
+ if (sl[i]=sl[i+1]) then
+ sl.Delete(i+1);
+ for i:=0 to sl.Count-1 do
-+ _fields.Add(sl[i]);
++ _fields.Add(sl[i]);
args.Add('fields', _fields);
req.Add('arguments', args);
Result:=SendRequest(req);