fix preloading for old remote servers, fixes #4652

if the remote server does not support the dict-based argument passing
yet (e.g. when accidentally using borg 0.29 on rsync.net), the GET rpc
call argument list failed to generate if the command currently being
processed was not a GET also.

note: rsync.net has a more recent borg as "borg1".
This commit is contained in:
Thomas Waldmann 2019-06-28 21:10:58 +02:00
parent e1b4c1d27b
commit 2574f4dac5

View file

@ -880,7 +880,7 @@ This problem will go away as soon as the server has been upgraded to 1.0.7+.
if self.dictFormat:
self.to_send = msgpack.packb({MSGID: self.msgid, MSG: 'get', ARGS: args})
else:
self.to_send = msgpack.packb((1, self.msgid, 'get', self.named_to_positional(cmd, args)))
self.to_send = msgpack.packb((1, self.msgid, 'get', self.named_to_positional('get', args)))
if self.to_send:
try: