/[smeserver]/rpms/e-smith-devtools/sme8/e-smith-devtools-2.2.0-compiledpython.patch
ViewVC logotype

Annotation of /rpms/e-smith-devtools/sme8/e-smith-devtools-2.2.0-compiledpython.patch

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


Revision 1.2 - (hide annotations) (download)
Wed Oct 28 13:47:16 2009 UTC (14 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-devtools-2_2_0-3_el5_sme, e-smith-devtools-2_2_0-4_el5_sme, HEAD
Changes since 1.1: +2 -2 lines
* Mon Oct 26 2009 Shad L. Lords <slords@mail.com> 2.2.0-3.sme
- Fix previous patch [SME: 5538]

1 slords 1.1 diff -up e-smith-devtools-2.2.0/genfilelist.compiledpython e-smith-devtools-2.2.0/genfilelist
2     --- e-smith-devtools-2.2.0/genfilelist.compiledpython 2006-03-16 03:06:17.000000000 -0700
3     +++ e-smith-devtools-2.2.0/genfilelist 2009-10-26 13:35:24.000000000 -0600
4     @@ -212,20 +212,28 @@ sub process
5     }
6     elsif (-f)
7     {
8     - # Some files get special permissions and ownership
9     - my $dir = (dirname $path) . '/';
10     + my (@paths) = ($path);
11    
12     - # Special permissions per file
13     - if (defined $::fileperms{$path})
14     - {
15     - print "$::fileperms{$path} ";
16     - }
17     - # Special permissions or per containing directory
18     - elsif (defined $::fileperms{$dir})
19     - {
20     - print "$::fileperms{$dir} ";
21     - }
22     - print "$path\n";
23     + # Add compiled python files
24 slords 1.2 + push @paths, "${path}c" if $path =~ m{\.py$};
25     + push @paths, "${path}o" if $path =~ m{\.py$};
26 slords 1.1 +
27     + foreach $path (@paths) {
28     + # Some files get special permissions and ownership
29     + my $dir = (dirname $path) . '/';
30     +
31     + # Special permissions per file
32     + if (defined $::fileperms{$path})
33     + {
34     + print "$::fileperms{$path} ";
35     + }
36     + # Special permissions or per containing directory
37     + elsif (defined $::fileperms{$dir})
38     + {
39     + print "$::fileperms{$dir} ";
40     + }
41     + print "$path\n";
42     + }
43     }
44     else
45     {

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