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

Annotation of /rpms/smeserver-yum/sme8/smeserver-yum-1.2.0-uptodate.patch

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


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

1 bytegw 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum
2     --- smeserver-yum-1.2.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum 2008-01-09 16:44:20.000000000 +1100
3     +++ mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/yum 2008-01-09 13:24:50.000000000 +1100
4     @@ -66,6 +66,19 @@
5     </entry>
6    
7     <entry>
8     + <base>DESC_UPTODATE</base>
9     + <trans>
10     + <![CDATA[
11     + <div class="success">
12     + <h2>This system is up to date.</h2>
13     +
14     + All updates have been installed.
15     + </div>
16     + ]]>
17     + </trans>
18     + </entry>
19     +
20     + <entry>
21     <base>DESC_UPDATES_AVAILABLE</base>
22     <trans>
23     <![CDATA[
24     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
25     --- smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum 2008-01-09 16:44:20.000000000 +1100
26     +++ mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/web/functions/yum 2008-01-09 13:40:08.000000000 +1100
27     @@ -65,6 +65,14 @@
28    
29     <field
30     type="literal"
31     + id="updates_installed"
32     + display="is_empty('updates')"
33     + value="">
34     + <description>DESC_UPTODATE</description>
35     + </field>
36     +
37     + <field
38     + type="literal"
39     id="updates_available"
40     display="non_empty('updates')"
41     value="">
42     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
43     --- smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm 2008-01-09 16:44:20.000000000 +1100
44     +++ mezzanine_patched_smeserver-yum-1.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm 2008-01-09 16:39:44.000000000 +1100
45     @@ -114,6 +114,20 @@
46     return defined $value ? $value : $default;
47     }
48    
49     +sub is_empty
50     +{
51     + my ($fm, $yumdb) = @_;
52     +
53     + my $groups = $dbs{$yumdb}->get_all_by_prop(type => 'group') || 'none';
54     + my $packages = $dbs{$yumdb}->get_all_by_prop(type => 'package') || 'none';
55     +
56     + #Show no updates if both = none
57     + return 1 if ($packages eq $groups);
58     +
59     + #else return here
60     + return;
61     +}
62     +
63     sub non_empty
64     {
65     my ($fm, $yumdb, $type) = @_;

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