r74169 - in /trunk/libnet-freedb-perl/debian: changelog patches/ patches/no_internet.patch patches/series rules source/ source/format
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Mon May 9 19:42:48 UTC 2011
Author: gregoa
Date: Mon May 9 19:37:39 2011
New Revision: 74169
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=74169
Log:
* Switch to source format 3.0 (quilt).
* Add a patch to disable tests that need internet access
(closes: #625840).
Added:
trunk/libnet-freedb-perl/debian/patches/
trunk/libnet-freedb-perl/debian/patches/no_internet.patch
trunk/libnet-freedb-perl/debian/patches/series
trunk/libnet-freedb-perl/debian/source/
trunk/libnet-freedb-perl/debian/source/format
Modified:
trunk/libnet-freedb-perl/debian/changelog
trunk/libnet-freedb-perl/debian/rules
Modified: trunk/libnet-freedb-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-freedb-perl/debian/changelog?rev=74169&op=diff
==============================================================================
--- trunk/libnet-freedb-perl/debian/changelog (original)
+++ trunk/libnet-freedb-perl/debian/changelog Mon May 9 19:37:39 2011
@@ -1,3 +1,11 @@
+libnet-freedb-perl (0.08-2) UNRELEASED; urgency=low
+
+ * Switch to source format 3.0 (quilt).
+ * Add a patch to disable tests that need internet access
+ (closes: #625840).
+
+ -- gregor herrmann <gregoa at debian.org> Mon, 09 May 2011 21:14:57 +0200
+
libnet-freedb-perl (0.08-1) unstable; urgency=low
* Initial Release. (Closes: #490804)
Added: trunk/libnet-freedb-perl/debian/patches/no_internet.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-freedb-perl/debian/patches/no_internet.patch?rev=74169&op=file
==============================================================================
--- trunk/libnet-freedb-perl/debian/patches/no_internet.patch (added)
+++ trunk/libnet-freedb-perl/debian/patches/no_internet.patch Mon May 9 19:37:39 2011
@@ -1,0 +1,33 @@
+Description: Don't run tests that need internet access (or a physical CD-Rom) unless HAVE_INTERNET is set
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/625840
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2011-05-09
+
+--- a/test.pl
++++ b/test.pl
+@@ -7,7 +7,7 @@
+
+ use Test;
+ use Data::Dumper;
+-BEGIN { plan tests => 10 };
++BEGIN { plan tests => ( $ENV{HAVE_INTERNET} ? 10 : 1) };
+ use Net::FreeDB;
+ ok(1); # If we made it this far, we're ok.
+
+@@ -16,6 +16,8 @@
+ # Insert your test code below, the Test module is use()ed here so read
+ # its man page ( perldoc Test ) for help writing this test script.
+
++if ( $ENV{HAVE_INTERNET} ) {
++
+ #########################
+ ok($cddb = new Net::FreeDB('USER' => 'win32usr'));
+
+@@ -67,3 +69,5 @@
+ }
+
+ ok($id->{NUM_TRKS});
++
++} # end HAVE_INTERNET
Added: trunk/libnet-freedb-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-freedb-perl/debian/patches/series?rev=74169&op=file
==============================================================================
--- trunk/libnet-freedb-perl/debian/patches/series (added)
+++ trunk/libnet-freedb-perl/debian/patches/series Mon May 9 19:37:39 2011
@@ -1,0 +1,1 @@
+no_internet.patch
Modified: trunk/libnet-freedb-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-freedb-perl/debian/rules?rev=74169&op=diff
==============================================================================
--- trunk/libnet-freedb-perl/debian/rules (original)
+++ trunk/libnet-freedb-perl/debian/rules Mon May 9 19:37:39 2011
@@ -2,3 +2,9 @@
%:
dh $@
+
+override_dh_auto_test:
+ # tests fail without internet access
+ # set HAVE_INTERNET to 1 for manual builds
+ # (and put a CD-RON into /dev/cdrom for the second part of the test suite)
+ HAVE_INTERNET=0 dh_auto_test
Added: trunk/libnet-freedb-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-freedb-perl/debian/source/format?rev=74169&op=file
==============================================================================
--- trunk/libnet-freedb-perl/debian/source/format (added)
+++ trunk/libnet-freedb-perl/debian/source/format Mon May 9 19:37:39 2011
@@ -1,0 +1,1 @@
+3.0 (quilt)
More information about the Pkg-perl-cvs-commits
mailing list