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

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

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


Revision 1.2 - (hide annotations) (download)
Tue Oct 7 16:49:14 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove patches

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