Allow installing/updating of apps again
The Guzzle API changed. We shall now use sink Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c8cbb73c05
commit
9b58a027e3
|
@ -286,7 +286,7 @@ class Installer {
|
||||||
$tempFile = $this->tempManager->getTemporaryFile('.tar.gz');
|
$tempFile = $this->tempManager->getTemporaryFile('.tar.gz');
|
||||||
$timeout = $this->isCLI ? 0 : 120;
|
$timeout = $this->isCLI ? 0 : 120;
|
||||||
$client = $this->clientService->newClient();
|
$client = $this->clientService->newClient();
|
||||||
$client->get($app['releases'][0]['download'], ['save_to' => $tempFile, 'timeout' => $timeout]);
|
$client->get($app['releases'][0]['download'], ['sink' => $tempFile, 'timeout' => $timeout]);
|
||||||
|
|
||||||
// Check if the signature actually matches the downloaded content
|
// Check if the signature actually matches the downloaded content
|
||||||
$certificate = openssl_get_publickey($app['certificate']);
|
$certificate = openssl_get_publickey($app['certificate']);
|
||||||
|
|
|
@ -348,7 +348,7 @@ u/spPSSVhaun5BA1FlphB2TkgnzlCmxJa63nFY045e/Jq+IKMcqqZl/092gbI2EQ
|
||||||
$client
|
$client
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://example.com', ['save_to' => $realTmpFile, 'timeout' => 120]);
|
->with('https://example.com', ['sink' => $realTmpFile, 'timeout' => 120]);
|
||||||
$this->clientService
|
$this->clientService
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('newClient')
|
->method('newClient')
|
||||||
|
@ -432,7 +432,7 @@ YwDVP+QmNRzx72jtqAN/Kc3CvQ9nkgYhU65B95aX0xA=',
|
||||||
$client
|
$client
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://example.com', ['save_to' => $realTmpFile, 'timeout' => 120]);
|
->with('https://example.com', ['sink' => $realTmpFile, 'timeout' => 120]);
|
||||||
$this->clientService
|
$this->clientService
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('newClient')
|
->method('newClient')
|
||||||
|
@ -515,7 +515,7 @@ YwDVP+QmNRzx72jtqAN/Kc3CvQ9nkgYhU65B95aX0xA=',
|
||||||
$client
|
$client
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://example.com', ['save_to' => $realTmpFile, 'timeout' => 120]);
|
->with('https://example.com', ['sink' => $realTmpFile, 'timeout' => 120]);
|
||||||
$this->clientService
|
$this->clientService
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('newClient')
|
->method('newClient')
|
||||||
|
@ -594,7 +594,7 @@ MPLX6f5V9tCJtlH6ztmEcDROfvuVc0U3rEhqx2hphoyo+MZrPFpdcJL8KkIdMKbY
|
||||||
$client
|
$client
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://example.com', ['save_to' => $realTmpFile, 'timeout' => 120]);
|
->with('https://example.com', ['sink' => $realTmpFile, 'timeout' => 120]);
|
||||||
$this->clientService
|
$this->clientService
|
||||||
->expects($this->at(0))
|
->expects($this->at(0))
|
||||||
->method('newClient')
|
->method('newClient')
|
||||||
|
@ -680,7 +680,7 @@ JXhrdaWDZ8fzpUjugrtC3qslsqL0dzgU37anS3HwrT8=',
|
||||||
$client
|
$client
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://example.com', ['save_to' => $realTmpFile, 'timeout' => 120]);
|
->with('https://example.com', ['sink' => $realTmpFile, 'timeout' => 120]);
|
||||||
$this->clientService
|
$this->clientService
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('newClient')
|
->method('newClient')
|
||||||
|
|
Loading…
Reference in New Issue