summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 0729528..f752ec7 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -316,10 +316,10 @@ function download_file_with_progress_bar($url_file, $destination_file) {
curl_setopt($ch, CURLOPT_NOPROGRESS, '1');
curl_exec($ch);
+ $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fclose($fout);
curl_close($ch);
-
- return 1;
+ return ($http_code == 200) ? true : $http_code;
}
function read_header($ch, $string) {
OpenPOWER on IntegriCloud