/[smeserver]/rpms/smeserver-yum/sme8/smeserver-yum-1.2.0-reconfigurepage.patch
ViewVC logotype

Contents of /rpms/smeserver-yum/sme8/smeserver-yum-1.2.0-reconfigurepage.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 14:47:51 2008 UTC (15 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum
2 --- smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum 2006-11-21 12:18:06.156161003 +1100
3 +++ mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum 2006-11-21 12:00:32.593663306 +1100
4 @@ -42,12 +42,7 @@
5
6 if ($f->get_prop('yum', 'LogFile'))
7 {
8 - $f->success('HEADER_POSTUPGRADE_REQUIRED', 'YUM_PAGE_POSTUPGRADE');
9 -
10 - $f->{cgi}->param(-name => "page", -value => 0);
11 - $f->{cgi}->param(-name => "page_stack", -value => '');
12 - $f->{cgi}->param(-name => "Next", -value => 'Next');
13 - $f->{cgi}->param(-name => "wherenext", -value =>'YUM_PAGE_POSTUPGRADE');
14 + $f->skip_to_postupgrade();
15 }
16
17 $f->display();
18 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm mezzanine_patched_smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm
19 --- smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm 2006-11-21 12:18:06.154161352 +1100
20 +++ mezzanine_patched_smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm 2006-11-21 12:15:11.454589327 +1100
21 @@ -322,9 +322,15 @@
22 {
23 my $fm = shift;
24
25 - $db->delete_prop('yum', 'LogFile');
26 + $db->get_prop_and_delete('yum', 'LogFile');
27
28 - system( "( /sbin/e-smith/signal-event post-upgrade ; /sbin/e-smith/signal-event reboot ) &" );
29 + $db->reload;
30 +
31 + if (fork == 0)
32 + {
33 + exec "/sbin/e-smith/signal-event post-upgrade; /sbin/e-smith/signal-event reboot";
34 + die "Exec failed";
35 + }
36
37 $fm->success('SYSTEM_BEING_RECONFIGURED');
38 }
39 @@ -346,4 +352,17 @@
40 return;
41 }
42
43 +sub skip_to_postupgrade
44 +{
45 + my $fm = shift;
46 +
47 + $db->get_prop_and_delete("yum", "LogFile");
48 + $fm->success('HEADER_POSTUPGRADE_REQUIRED', 'YUM_PAGE_POSTUPGRADE');
49 +
50 + $fm->{cgi}->param(-name => "page", -value => 0);
51 + $fm->{cgi}->param(-name => "page_stack", -value => '');
52 + $fm->{cgi}->param(-name => "Next", -value => 'Next');
53 + $fm->{cgi}->param(-name => "wherenext", -value =>'YUM_PAGE_POSTUPGRADE');
54 +}
55 +
56 1;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed