[libmusicbrainz-discid-perl] 01/03: Add patch for test to work with URLs returned by old and new libdiscid.

gregor herrmann gregoa at debian.org
Tue Nov 26 21:20:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libmusicbrainz-discid-perl.

commit 8d96f939646eab4c76c06a46ad012a62b0a36833
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Nov 26 22:16:22 2013 +0100

    Add patch for test to work with URLs returned by old and new libdiscid.
    
    Closes: #725584
---
 debian/patches/series    |  1 +
 debian/patches/url.patch | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 5766d01..47d7148 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 pod-encoding.patch
+url.patch
diff --git a/debian/patches/url.patch b/debian/patches/url.patch
new file mode 100644
index 0000000..d4f6a6f
--- /dev/null
+++ b/debian/patches/url.patch
@@ -0,0 +1,23 @@
+Description: libdiscid 0.6.x has updated the URLs
+ modify test to accept old and new ones
+Origin: vendor
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=89285
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=89285
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725584
+Author: gregor herrmann <gregoa at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-11-26
+
+--- a/t/10discid.t
++++ b/t/10discid.t
+@@ -28,8 +28,8 @@
+ is( $disc->freedb_id, '370fce16');
+ is( $disc->last_track_num, 22);
+ is( $disc->sectors, 303602);
+-is( $disc->submission_url, 'http://mm.musicbrainz.org/bare/cdlookup.html?id=xUp1F2NkfP8s8jaeFn_Av3jNEI4-&tracks=22&toc=1+22+303602+150+9700+25887+39297+53795+63735+77517+94877+107270+123552+135522+148422+161197+174790+192022+205545+218010+228700+239590+255470+266932+288750');
+-is( $disc->webservice_url, 'http://mm.musicbrainz.org/ws/1/release?type=xml&discid=xUp1F2NkfP8s8jaeFn_Av3jNEI4-&toc=1+22+303602+150+9700+25887+39297+53795+63735+77517+94877+107270+123552+135522+148422+161197+174790+192022+205545+218010+228700+239590+255470+266932+288750');
++like( $disc->submission_url, qr{http://(mm\.musicbrainz\.org/bare/cdlookup\.html|musicbrainz\.org/cdtoc/attach)\?id=xUp1F2NkfP8s8jaeFn_Av3jNEI4-&tracks=22&toc=1\+22\+303602\+150\+9700\+25887\+39297\+53795\+63735\+77517\+94877\+107270\+123552\+135522\+148422\+161197\+174790\+192022\+205545\+218010\+228700\+239590\+255470\+266932\+288750});
++like( $disc->webservice_url, qr{http://(mm\.)?musicbrainz\.org/ws/1/release\?type=xml&discid=xUp1F2NkfP8s8jaeFn_Av3jNEI4-&toc=1\+22\+303602\+150\+9700\+25887\+39297\+53795\+63735\+77517\+94877\+107270\+123552\+135522\+148422\+161197\+174790\+192022\+205545\+218010\+228700\+239590\+255470\+266932\+288750});
+ 
+ is( $disc->track_offset(1), 150);
+ is( $disc->track_offset(2), 9700);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmusicbrainz-discid-perl.git



More information about the Pkg-perl-cvs-commits mailing list