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