File: 10dict_location.patch

package info (click to toggle)
libdata-random-perl 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: perl: 405; sh: 11; makefile: 10
file content (28 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download
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
Description: Change /usr/dict/words to /usr/share/dict/words to reflect FHS.
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-10-18

--- a/lib/Data/Random/WordList.pm
+++ b/lib/Data/Random/WordList.pm
@@ -132,7 +132,7 @@
 
   use Data::Random::WordList;
 
-  my $wl = new Data::Random::WordList( wordlist => '/usr/dict/words' );
+  my $wl = new Data::Random::WordList( wordlist => '/usr/share/dict/words' );
 
   my @rand_words = $wl->get_words(10);
 
--- a/lib/Data/Random.pm
+++ b/lib/Data/Random.pm
@@ -548,7 +548,7 @@
 
 =item *
 
-wordlist - the path to the wordlist file.  A lot of systems have one at /usr/dict/words.  You can also optionally supply a Data::Random::WordList object to keep a persistent wordlist.  The default is the wordlist distributed with this module.
+wordlist - the path to the wordlist file.  On Debian systems one can be found at /usr/share/dict/words.  You can also optionally supply a Data::Random::WordList object to keep a persistent wordlist.  The default is the wordlist distributed with this module.
 
 =item *