mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Show a more useful error if no package or update system was found https://sourceforge.net/p/webadmin/bugs/4615/
This commit is contained in:
@@ -8,12 +8,14 @@ require './software-lib.pl';
|
||||
"man", "doc"));
|
||||
|
||||
# Validate the package and update systems
|
||||
$err = &check_package_system();
|
||||
$err = !defined(&check_package_system) ? $text{'index_echeckpackage'}
|
||||
: &check_package_system();
|
||||
if ($err) {
|
||||
&ui_print_endpage(&text('index_epackagecheck', $err,
|
||||
"../config.cgi?$module_name"));
|
||||
}
|
||||
$err = &check_update_system();
|
||||
$err = !defined(&check_update_system) ? $text{'index_echeckupdate'}
|
||||
: &check_update_system();
|
||||
if ($err) {
|
||||
&ui_print_endpage(&text('index_eupdatecheck', $err,
|
||||
"../config.cgi?$module_name"));
|
||||
|
||||
@@ -20,6 +20,8 @@ index_epackagecmd=The $1 package system requires the $2 command
|
||||
index_eupdatecmd=The $1 update system requires the $2 command
|
||||
index_epackagecheck=The selected package management system is not valid : $1.<br>You may need to select a different system on the <a href='$2'>module configuration</a> page.
|
||||
index_eupdatecheck=The selected update system is not valid : $1.<br>You may need to select a different update method on the <a href='$2'>module configuration</a> page.
|
||||
index_echeckpackage=No package system was detected!
|
||||
index_echeckupdate=No update system was detected!
|
||||
|
||||
search_title=Package Search
|
||||
search_nomatch=No packages matched $1
|
||||
|
||||
Reference in New Issue
Block a user