Example #1
0
                            } else {
                                // this is bad: this is an error that was not caught by dry_run()
                                break;
                            }
                        } else {
                            // dry_run() returned errors so we shouldn't show the finish button
                            $show_finish = false;
                        }
                    } else {
                        // some of the requirements of this install are not satisfied, moving on to next install instruction
                        // this shouldn't be executed but just to be sure:
                        continue;
                    }
                }
                if (!$ui_request && !$p->error && !$p->is_helper) {
                    $p->finish();
                }
            }
        } else {
            $error = true;
            $topass['message']['type'] = MESSAGE_ERROR;
            $topass['message']['text'] = 'Error reading the package';
        }
    } else {
        $error = true;
        $topass['message']['type'] = MESSAGE_ERROR;
        $topass['message']['text'] = 'File is not a valid Etano package';
    }
}
if (isset($p) && $p->error && !empty($p->manual_actions)) {
    $tpl->set_file('content', 'package_install.html');