| 1 |
Descriptionscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Description.: scrappy creates files with interesting permissions like --w----r-T |
| 2 |
File::Util expects a bitmask which should be given in octal mode. |
| 3 |
Let's do this. |
| 4 |
Additionally, make the created scripts executable. |
| 5 |
Originscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Origin.: vendor |
| 6 |
Bug-Debianscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Bug-Debian.: https://bugs.debian.org/751138scip-debian-bts debian-bts . . 751138: |
| 7 |
Authorscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Author.: gregor herrmann <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 8 |
Last-Updatescip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Last-Update.: 2014-06-22 |
| 9 |
Forwardedscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/patches/`access-rights-octal.patch`#Forwarded.: https://rt.cpan.org/Ticket/Display.html?id=96639 |
| 10 |
|
| 11 |
--- a/lib/Scrappy/Action/Generate.pmscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/upstream/`lib/Scrappy/Action/Generate.pm`: |
| 12 |
+++ b/lib/Scrappy/Action/Generate.pmscip-debian debian libscrappy-perl 0.94112090-3 libscrappy-perl/upstream/`lib/Scrappy/Action/Generate.pm`: |
| 13 |
@@ -21,7 +21,7 @@ |
| 14 |
File::Util->new->make_dir(join("_", $script_name, "logs")); |
| 15 |
File::Util->new->write_file( |
| 16 |
'file' => "$script_name.pl", |
| 17 |
|
| 18 |
+ 'bitmask' => oct 755, |
| 19 |
'content' => strip tt q{ |
| 20 |
#!/usr/bin/perl |
| 21 |
|
| 22 |
@@ -79,7 +79,7 @@ |
| 23 |
|
| 24 |
File::Util->new->write_file( |
| 25 |
'file' => -d $object ? "$object/lib/$path.pm" : "lib/$path.pm", |
| 26 |
|
| 27 |
+ 'bitmask' => oct 644, |
| 28 |
'content' => strip tt q{ |
| 29 |
package [% project %]; |
| 30 |
|
| 31 |
@@ -115,7 +115,7 @@ |
| 32 |
File::Util->new->make_dir('logs'); |
| 33 |
File::Util->new->write_file( |
| 34 |
'file' => "$object/" . lc $object, |
| 35 |
|
| 36 |
+ 'bitmask' => oct 644, |
| 37 |
'content' => strip tt q{ |
| 38 |
#!/usr/bin/perl |
| 39 |
|
| 40 |
@@ -160,7 +160,7 @@ |
| 41 |
|
| 42 |
File::Util->new->write_file( |
| 43 |
'file' => "$object/lib/$path.pm", |
| 44 |
|
| 45 |
+ 'bitmask' => oct 644, |
| 46 |
'content' => strip tt q{ |
| 47 |
package [% project %]; |
| 48 |
|
| 49 |
@@ -187,7 +187,7 @@ |
| 50 |
|
| 51 |
File::Util->new->write_file( |
| 52 |
'file' => "$object/lib/$path/Root.pm", |
| 53 |
|
| 54 |
+ 'bitmask' => oct 644, |
| 55 |
'content' => strip tt q{ |
| 56 |
package [% project %]::Root; |
| 57 |
|
| 58 |
@@ -208,7 +208,7 @@ |
| 59 |
|
| 60 |
File::Util->new->write_file( |
| 61 |
'file' => "$object/lib/$path/List.pm", |
| 62 |
|
| 63 |
+ 'bitmask' => oct 644, |
| 64 |
'content' => strip tt q{ |
| 65 |
package [% project %]::List; |
| 66 |
|
| 67 |
@@ -229,7 +229,7 @@ |
| 68 |
|
| 69 |
File::Util->new->write_file( |
| 70 |
'file' => "$object/lib/$path/Page.pm", |
| 71 |
|
| 72 |
+ 'bitmask' => oct 644, |
| 73 |
'content' => strip tt q{ |
| 74 |
package [% project %]::Page; |
| 75 |
|