summaryrefslogtreecommitdiff
path: root/dev-perl/Net-FreeDB/files/Net-FreeDB-0.100.0-gnudb.patch
blob: d2a780ae0ce2e651ac15d77c82b74293edb48c5e (plain)
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
46
47
48
49
50
51
52
https://rt.cpan.org/Public/Bug/Display.html?id=137752

Description: replace default host freedb.freedb.org with gnudb.gnudb.org.
 Also remove reference to inaccessible documentation, and fix the non-online
 test which checks for the default host.
Origin: vendor
Bug-Debian: https://bugs.debian.org/991089
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2021-07-16

--- a/FreeDB.pm
+++ b/FreeDB.pm
@@ -7,7 +7,7 @@
 use File::Temp;
 
 has hostname               => (is => 'ro', default => $ENV{HOSTNAME} // 'unknown');
-has remote_host            => (is => 'rw', default => 'freedb.freedb.org');
+has remote_host            => (is => 'rw', default => 'gnudb.gnudb.org');
 has remote_port            => (is => 'rw', default => 8880);
 has user                   => (is => 'rw', default => $ENV{USER} // 'unknown');
 has timeout                => (is => 'rw', default => 120);
@@ -449,7 +449,7 @@
 
 
     new() creates and returns a new Net::FreeDB object that is connected
-    to either the given host or freedb.freedb.org as default.
+    to either the given host or gnudb.gnudb.org as default.
 
 =item lscat
 
@@ -723,10 +723,6 @@
         giving the correct drive number will return in an
         accurate return.
 
-=head1 Resources
-    The current version of the CDDB Server Protocol can be
-    found at: http://ftp.freedb.org/pub/freedb/latest/CDDBPROTO
-
 =head1 AUTHOR
     David Shultz E<lt>dshultz@cpan.orgE<gt>
     Peter Pentchev E<lt>roam@ringlet.netE<gt>
--- a/t/00-basic.t
+++ b/t/00-basic.t
@@ -10,7 +10,7 @@
     ok($freedb->hostname eq 'unknown', 'Error setting hostname');
 }
 
-ok($freedb->remote_host eq 'freedb.freedb.org', 'Error setting default host');
+ok($freedb->remote_host eq 'gnudb.gnudb.org', 'Error setting default host');
 
 ok($freedb->remote_port == 8880, 'Error setting default port');