/[smeserver]/rpms/e-smith-apache/sme8/e-smith-apache-1.2.0-skipdomain.patch
ViewVC logotype

Annotation of /rpms/e-smith-apache/sme8/e-smith-apache-1.2.0-skipdomain.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 18:23:44 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-apache-1_2_0-16_el5_sme, e-smith-apache-1_2_0-13_el5_sme, e-smith-apache-1_2_0-15_el5_sme
Import on branch sme8 of package e-smith-apache-1.2.0-13.el5.sme.src.rpm

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-apache-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/03ServerAlias mezzanine_patched_e-smith-apache-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/03ServerAlias
2     --- e-smith-apache-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/03ServerAlias 2006-03-14 09:47:18.000000000 -0700
3     +++ mezzanine_patched_e-smith-apache-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/03ServerAlias 2007-02-23 09:03:41.000000000 -0700
4     @@ -1,8 +1,13 @@
5     ServerAlias {
6    
7     use esmith::HostsDB;
8     + use esmith::DomainsDB;
9     my $hdb = esmith::HostsDB->open_ro();
10     - my @hosts = grep { $_->prop('HostType') eq 'Self' } $hdb->get_hosts_by_domain($virtualHost);
11     + my %domains = map { $_->key => 1 } esmith::DomainsDB->open_ro->domains;
12     + my @hosts = grep {
13     + my $h = $_;
14     + ($h->prop('HostType') eq 'Self') && !$domains{$h->key}
15     + } $hdb->get_hosts_by_domain($virtualHost);
16     $OUT = join " ", map { $_->key } @hosts;
17     }
18    

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