diff -urN smeserver-yum-2.6.2.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum smeserver-yum-2.6.2/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum
--- smeserver-yum-2.6.2.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum 2022-07-11 19:10:46.000000000 +0400
+++ smeserver-yum-2.6.2/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum 2023-02-26 21:31:05.000000000 +0400
@@ -12,6 +12,11 @@
+ UPDATE_SUCCESS
+ The requested changes have been successfully implemented.
+
+
+
LABEL_YUM_STATUS
Check for updates
diff -urN smeserver-yum-2.6.2.old/root/etc/e-smith/web/functions/yum smeserver-yum-2.6.2/root/etc/e-smith/web/functions/yum
--- smeserver-yum-2.6.2.old/root/etc/e-smith/web/functions/yum 2022-07-11 19:10:46.000000000 +0400
+++ smeserver-yum-2.6.2/root/etc/e-smith/web/functions/yum 2023-02-26 21:19:45.000000000 +0400
@@ -309,4 +309,13 @@
+
+
+
+
+
+
+
diff -urN smeserver-yum-2.6.2.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/yum.pm smeserver-yum-2.6.2/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/yum.pm
--- smeserver-yum-2.6.2.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/yum.pm 2022-07-11 19:10:46.000000000 +0400
+++ smeserver-yum-2.6.2/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/yum.pm 2023-02-26 21:21:30.000000000 +0400
@@ -390,12 +390,21 @@
{
my $fm = shift;
- $fm->success('HEADER_POSTUPGRADE_REQUIRED', 'YUM_PAGE_POSTUPGRADE');
-
- $fm->{cgi}->param(-name => "page", -value => 0);
- $fm->{cgi}->param(-name => "page_stack", -value => '');
- $fm->{cgi}->param(-name => "Next", -value => 'Next');
- $fm->{cgi}->param(-name => "wherenext", -value =>'YUM_PAGE_POSTUPGRADE');
+ my $reconf = get_value($fm,"UnsavedChanges",'yes');
+ if ( $reconf eq 'no' ) {
+ $fm->success('UPDATE_SUCCESS');
+ $fm->{cgi}->param(-name => "page", -value => 0);
+ $fm->{cgi}->param(-name => "page_stack", -value => '');
+ $fm->{cgi}->param(-name => "Next", -value => 'Next');
+ $fm->{cgi}->param(-name => "wherenext", -value =>'YUM_PAGE_NO_POSTUPGRADE');
+ } else {
+# effective reconfigure and reboot required
+ $fm->success('HEADER_POSTUPGRADE_REQUIRED', 'YUM_PAGE_POSTUPGRADE');
+ $fm->{cgi}->param(-name => "page", -value => 0);
+ $fm->{cgi}->param(-name => "page_stack", -value => '');
+ $fm->{cgi}->param(-name => "Next", -value => 'Next');
+ $fm->{cgi}->param(-name => "wherenext", -value =>'YUM_PAGE_POSTUPGRADE');
+ }
}
1;