Unfuzz pod-spelling patch, and extend dep3 header.
Jonas Smedegaard
5 years ago
1 | 1 | Author: Damyan Ivanov <dmn@debian.org> |
2 | 2 | Forwarded: https://rt.cpan.org/Ticket/Display.html?id=105124 |
3 | 3 | Bug: https://rt.cpan.org/Ticket/Display.html?id=105124 |
4 | ||
4 | Last-Update: 2019-02-22 | |
5 | --- | |
6 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
5 | 7 | --- a/lib/NetSDS/Util/File.pm |
6 | 8 | +++ b/lib/NetSDS/Util/File.pm |
7 | @@ -72,7 +72,7 @@ our @EXPORT = qw( | |
9 | @@ -72,7 +72,7 @@ | |
8 | 10 | |
9 | 11 | =item B<is_handle($var)> - check if argument is a file handle |
10 | 12 | |
13 | 15 | |
14 | 16 | Returns: 1 if it's file handle or undef otherwise |
15 | 17 | |
16 | @@ -103,7 +103,7 @@ sub is_handle { | |
18 | @@ -103,7 +103,7 @@ | |
17 | 19 | |
18 | 20 | =item B<reset_handle($fh)> - reset file handle |
19 | 21 | |
22 | 24 | |
23 | 25 | Returns: nothing |
24 | 26 | |
25 | @@ -137,7 +137,7 @@ sub reset_handle { | |
27 | @@ -137,7 +137,7 @@ | |
26 | 28 | |
27 | 29 | =item B<file_open($file)> - open file |
28 | 30 | |
31 | 33 | |
32 | 34 | Returns: file handle |
33 | 35 | |
34 | @@ -181,7 +181,7 @@ sub file_open { | |
36 | @@ -181,7 +181,7 @@ | |
35 | 37 | |
36 | 38 | =item B<file_read($file)> - read file to scalar |
37 | 39 | |
40 | 42 | |
41 | 43 | Returns: scalar content of file |
42 | 44 | |
43 | @@ -216,7 +216,7 @@ sub file_read { | |
45 | @@ -216,7 +216,7 @@ | |
44 | 46 | |
45 | 47 | =item B<file_write($file, $data)> - write scalar data to file |
46 | 48 | |
49 | 51 | |
50 | 52 | Returns: length of written data or undef in case of error |
51 | 53 | |
52 | @@ -247,7 +247,7 @@ sub file_write { | |
54 | @@ -247,7 +247,7 @@ | |
53 | 55 | |
54 | 56 | =item B<file_copy($in_file, $out_file)> - copy file |
55 | 57 | |
58 | 60 | |
59 | 61 | Returns: |
60 | 62 | |
61 | @@ -275,7 +275,7 @@ sub file_copy { | |
63 | @@ -275,7 +275,7 @@ | |
62 | 64 | |
63 | 65 | =item B<file_move($in_file, $out_file)> - move file |
64 | 66 | |
67 | 69 | |
68 | 70 | Returns: 1 or undef |
69 | 71 | |
70 | @@ -326,7 +326,7 @@ sub file_temp { | |
72 | @@ -326,7 +326,7 @@ | |
71 | 73 | |
72 | 74 | =item B<dir_create($dir)> - create directory with parents |
73 | 75 | |
76 | 78 | |
77 | 79 | Returns: directory name or undef |
78 | 80 | |
79 | @@ -355,7 +355,7 @@ sub dir_create { | |
81 | @@ -355,7 +355,7 @@ | |
80 | 82 | |
81 | 83 | =item B<dir_delete($dir)> - remove directory recursive |
82 | 84 | |
85 | 87 | |
86 | 88 | Returns: dir name or undef if error |
87 | 89 | |
88 | @@ -383,7 +383,7 @@ sub dir_delete { | |
90 | @@ -383,7 +383,7 @@ | |
89 | 91 | |
90 | 92 | =item B<dir_read($dir, $ext)> - read files list from catalog |
91 | 93 | |
94 | 96 | |
95 | 97 | Returns: list of files in catalog |
96 | 98 | |
97 | @@ -416,7 +416,7 @@ sub dir_read { | |
99 | @@ -416,7 +416,7 @@ | |
98 | 100 | |
99 | 101 | =item B<dir_read_recursive($dir, $ext, [$res])> - read all files list recursive |
100 | 102 | |
103 | 105 | |
104 | 106 | Returns: list of files with extension from parameters |
105 | 107 | |
106 | @@ -457,7 +457,7 @@ sub dir_read_recursive { | |
108 | @@ -457,7 +457,7 @@ | |
107 | 109 | |
108 | 110 | =item B<exec_external($prog, [$param1, ... $paramN])> - execute external program |
109 | 111 | |
114 | 116 | |
115 | 117 | --- a/lib/NetSDS/Util/Misc.pm |
116 | 118 | +++ b/lib/NetSDS/Util/Misc.pm |
117 | @@ -141,7 +141,7 @@ sub make_uuid { | |
119 | @@ -141,7 +141,7 @@ | |
118 | 120 | |
119 | 121 | =item B<csv_num($num)> - format number for CSV |
120 | 122 | |
123 | 125 | |
124 | 126 | Returns: CSV formatted |
125 | 127 | |
126 | @@ -160,7 +160,7 @@ sub csv_num { | |
128 | @@ -160,7 +160,7 @@ | |
127 | 129 | |
128 | 130 | =item B<format_msisdn($msisdn)> - format MSISDN |
129 | 131 |