- 
                Notifications
    You must be signed in to change notification settings 
- Fork 39
feat(download): allow to download archives from several URLs #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
55e9a69    to
    8ae7d3a      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test but code looks good.
Can you add a comment for the regex?
| * Check if PHP is able to decompress archive format | ||
| */ | ||
| private function isAbleToDecompress(string $ext): bool { | ||
| // Only zip is supported for now | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Smells like over-engineering, but ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first, I wanted to support decompression for bz2 too, but it's not as straightforward as ZIP so I dropped it.
There is also another issue because we only have the signature for ZIP files.
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
8ae7d3a    to
    b8d50f6      
    Compare
  
    | /backport to stable31 | 
| /backport to stable30 | 
| } | ||
|  | ||
|  | ||
| use CurlHandle; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is unnecessary. Saw a report on the forum:
Warning: The use statement with non-compound name ‘CurlHandle’ has no effect in [...]/updater/index.php on line 30
Maybe \CurlHandle on the type hint for getCurl() too?
See nextcloud-releases/updater_server#1225