summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/thriftbackend/pyload.thrift2
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote2
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/Pyload.py17
3 files changed, 16 insertions, 5 deletions
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index 03eb1d4eb..5d828854c 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -254,7 +254,7 @@ service Pyload {
void orderPackage(1: PackageID pid, 2: i16 position),
void orderFile(1: FileID fid, 2: i16 position),
void setPackageData(1: PackageID pid, 2: map<string, string> data) throws (1: PackageDoesNotExists e),
- void deleteFinished(),
+ list<PackageID> deleteFinished(),
void restartFailed(),
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index e2e56d5ca..854b1589e 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -74,7 +74,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' void orderPackage(PackageID pid, i16 position)'
print ' void orderFile(FileID fid, i16 position)'
print ' void setPackageData(PackageID pid, data)'
- print ' void deleteFinished()'
+ print ' deleteFinished()'
print ' void restartFailed()'
print ' bool isCaptchaWaiting()'
print ' CaptchaTask getCaptchaTask(bool exclusive)'
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
index 677e4afe2..a1bc63f75 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
@@ -1873,7 +1873,7 @@ class Client(Iface):
def deleteFinished(self, ):
self.send_deleteFinished()
- self.recv_deleteFinished()
+ return self.recv_deleteFinished()
def send_deleteFinished(self, ):
self._oprot.writeMessageBegin('deleteFinished', TMessageType.CALL, self._seqid)
@@ -1892,7 +1892,9 @@ class Client(Iface):
result = deleteFinished_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
- return
+ if result.success is not None:
+ return result.success
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFinished failed: unknown result");
def restartFailed(self, ):
self.send_restartFailed()
@@ -3085,7 +3087,7 @@ class Processor(Iface, TProcessor):
args.read(iprot)
iprot.readMessageEnd()
result = deleteFinished_result()
- self._handler.deleteFinished()
+ result.success = self._handler.deleteFinished()
oprot.writeMessageBegin("deleteFinished", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
@@ -4904,13 +4906,22 @@ class deleteFinished_args(TBase):
class deleteFinished_result(TBase):
+ """
+ Attributes:
+ - success
+ """
__slots__ = [
+ 'success',
]
thrift_spec = (
+ (0, TType.LIST, 'success', (TType.I32,None), None, ), # 0
)
+ def __init__(self, success=None,):
+ self.success = success
+
class restartFailed_args(TBase):