/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-4.18.0-delete_forwarder.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-4.18.0-delete_forwarder.patch

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


Revision 1.2 - (hide annotations) (download)
Wed Mar 26 17:01:51 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Mar 26 2008 Shad L. Lords <slords@mail.com> 4.18.1-2
- Fix gettext strings returned by password checks [SME: 4104]

1 bytegw 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm
2     --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm 2007-01-27 01:56:31.000000000 +0000
3     +++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm 2007-11-11 14:16:21.000000000 +0000
4     @@ -31,19 +31,22 @@
5     sub set_prop {
6     my ($self, $key, $prop, $value) = @_;
7    
8     - my $current_value = $self->SUPER::get_prop($key, $prop);
9     + my $rec = $self->get($key);
10     + return unless ($rec);
11     + my $current_value = $rec->prop($prop);
12     return $current_value if (defined $current_value and $current_value eq $value);
13    
14     $self->SUPER::set_value('UnsavedChanges', 'yes');
15     - return $self->SUPER::set_prop($key, $prop, $value);
16     + return $rec->set_prop($prop, $value);
17     }
18     sub delete_prop {
19     my ($self, $key, $prop) = @_;
20     - my $current_value = $self->get_prop($key, $prop);
21     + my $rec = $self->get($key);
22     + my $current_value = $rec->prop($prop);
23     return unless (defined $current_value);
24    
25     $self->SUPER::set_value('UnsavedChanges', 'yes');
26     - return $self->SUPER::delete_prop($key, $prop);
27     + return $rec->delete_prop($prop);
28     }
29     # Deleting a record is the same as changing one
30     sub delete {

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