diff options
author | Simon Rettberg | 2014-03-20 17:44:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-03-20 17:44:58 +0100 |
commit | b6efc1db796a6be89f5f72a7c9485a31e1b99361 (patch) | |
tree | 93eb9baf2b1643ee5249288eddb33a0a8de9532d /modules/minilinux.inc.php | |
parent | Enable splash screen in PXE template (diff) | |
download | slx-admin-b6efc1db796a6be89f5f72a7c9485a31e1b99361.tar.gz slx-admin-b6efc1db796a6be89f5f72a7c9485a31e1b99361.tar.xz slx-admin-b6efc1db796a6be89f5f72a7c9485a31e1b99361.zip |
Fix handle leak in downloading, better error reporting on failed downloads, add nvidia_libs addon to downloads
Diffstat (limited to 'modules/minilinux.inc.php')
-rw-r--r-- | modules/minilinux.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/minilinux.inc.php b/modules/minilinux.inc.php index 49e72616..72af0eb4 100644 --- a/modules/minilinux.inc.php +++ b/modules/minilinux.inc.php @@ -15,6 +15,7 @@ function render_module() checkFile($files, 'initramfs-stage31'); checkFile($files, 'stage32.sqfs'); checkFile($files, 'vmware.sqfs'); + checkFile($files, 'nvidia_libs.sqfs'); Render::addTemplate('page-minilinux', array('files' => $files, 'token' => Session::get('token'))); } @@ -65,7 +66,7 @@ function checkFile(&$files, $name) $remoteMd5 = Util::download($remote, 3, $code); $remoteMd5 = strtolower(preg_replace('/[^0-9a-f]/is', '', $remoteMd5)); if ($code != 200) { - Message::addError('remote-timeout', $remote); + Message::addError('remote-timeout', $remote, $code); return false; } if ($existingMd5 === $remoteMd5) { |