/[smecontribs]/rpms/smeserver-learn/contribs10/smeserver-learn-1.0-Remove-deprecated-defined.patch
ViewVC logotype

Contents of /rpms/smeserver-learn/contribs10/smeserver-learn-1.0-Remove-deprecated-defined.patch

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


Revision 1.1 - (show annotations) (download)
Thu Dec 31 10:36:38 2020 UTC (3 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-learn-1_0-15_el7_sme, smeserver-learn-1_0-16_el7_sme, HEAD
Error occurred while calculating annotation data.
* Thu Dec 31 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-15.sme
- Remove-deprecated-defined [SME: 11281]

1 diff -urN smeserver-learn-1.0.old/root/usr/bin/Learn.pl smeserver-learn-1.0/root/usr/bin/Learn.pl
2 --- smeserver-learn-1.0.old/root/usr/bin/Learn.pl 2020-12-24 07:29:04.051369987 +0000
3 +++ smeserver-learn-1.0/root/usr/bin/Learn.pl 2020-12-31 10:23:19.522872456 +0000
4 @@ -74,8 +74,8 @@
5 # verification if user included or excluded
6 my @include= split(',',$sadb->get_prop("Learn", "Include")) if $sadb->get_prop("Learn", "Include");
7 my @exclude= split(',',$sadb->get_prop("Learn", "Exclude")) if $sadb->get_prop("Learn", "Exclude");
8 - next if ( defined @exclude and @found = grep { $_ eq $key } @exclude );
9 - next unless ( ! defined @include or @found = grep { $_ eq $key } @include );
10 + next if ( (@exclude) and @found = grep { $_ eq $key } @exclude );
11 + next unless ( ! (@include) or @found = grep { $_ eq $key } @include );
12
13 $currentuser = sprintf("Checking for user (%s): %s %s\n", $key,$firstname, $lastname);
14 print $currentuser unless ($verbose eq "active");

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