[SCM] Video extraction utility for YouTube, Google Video and other video sites (Debian packaging) branch, master, updated. debian/2.1.14-1-8-g91c84f6

Ryan Niebur ryanryan52 at gmail.com
Thu Jun 18 09:51:48 UTC 2009


The following commit has been merged in the master branch:
commit 91c84f63c5875be4c5ce8ed724bc5d34e69db92a
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date:   Thu Jun 18 02:51:13 2009 -0700

    patch to disable tests requiring internet

diff --git a/debian/changelog b/debian/changelog
index 58cea21..7515e6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ clive (2.2.0-1) UNRELEASED; urgency=low
   * New Upstream Version
   * update copyright
   * update dependencies
+  * patch to disable tests requiring internet
 
- -- Ryan Niebur <ryanryan52 at gmail.com>  Thu, 18 Jun 2009 02:34:50 -0700
+ -- Ryan Niebur <ryanryan52 at gmail.com>  Thu, 18 Jun 2009 02:50:54 -0700
 
 clive (2.1.14-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 15cd40a..b9a4d81 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: utils
 Priority: optional
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Damyan Ivanov <dmn at debian.org>, Ryan Niebur <ryanryan52 at gmail.com>
-Build-Depends: debhelper (>= 7.0.50)
+Build-Depends: debhelper (>= 7.0.8), quilt (>= 0.46-7)
 Build-Depends-Indep: perl,
  libclass-singleton-perl (>= 1.4),
  libgetopt-argvfile-perl (>= 1.11),
diff --git a/debian/patches/disable-internet-tests.patch b/debian/patches/disable-internet-tests.patch
new file mode 100644
index 0000000..2ac394f
--- /dev/null
+++ b/debian/patches/disable-internet-tests.patch
@@ -0,0 +1,182 @@
+disable tests that require internet access
+
+diff --git a/t/02youtube.t b/t/02youtube.t
+index eb84055..a1cf31f 100644
+--- a/t/02youtube.t
++++ b/t/02youtube.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 8;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 8;
++}
+ use Test::clive;
+ 
+ Test::clive::host( qq|http://www.youtube.com/watch?v=gb2fUOW1ne4|, "-f $_" )
+diff --git a/t/03break.t b/t/03break.t
+index d127775..8f8cccd 100644
+--- a/t/03break.t
++++ b/t/03break.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 1;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 1;
++}
+ use Test::clive;
+ 
+ Test::clive::host(qq|http://break.com/index/beach-tackle-whip-lash.html|);
+diff --git a/t/04liveleak.t b/t/04liveleak.t
+index 29a4595..8e84266 100644
+--- a/t/04liveleak.t
++++ b/t/04liveleak.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 2;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 2;
++}
+ use Test::clive;
+ 
+ Test::clive::host(qq|http://www.liveleak.com/view?i=704_1228511265|);
+diff --git a/t/05dailymotion.t b/t/05dailymotion.t
+index 7785314..7ed7e83 100644
+--- a/t/05dailymotion.t
++++ b/t/05dailymotion.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 6;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 6;
++}
+ use Test::clive;
+ 
+ foreach (qw(flv spak-mini vp6-hq vp6-hd vp6 h264)) {
+diff --git a/t/06lastfm.t b/t/06lastfm.t
+index ff68da8..16c90da 100644
+--- a/t/06lastfm.t
++++ b/t/06lastfm.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 1;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 1;
++}
+ use Test::clive;
+ 
+ Test::clive::host(
+diff --git a/t/07cctv.t b/t/07cctv.t
+index b345eac..d986e82 100644
+--- a/t/07cctv.t
++++ b/t/07cctv.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 1;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 1;
++}
+ use Test::clive;
+ 
+ Test::clive::host(qq|http://space.tv.cctv.com/video/VIDE1212909276513233|);
+diff --git a/t/08evisor.t b/t/08evisor.t
+index 4e2d03a..306766e 100644
+--- a/t/08evisor.t
++++ b/t/08evisor.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 1;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 1;
++}
+ use Test::clive;
+ 
+ Test::clive::host(
+diff --git a/t/09google.t b/t/09google.t
+index 68d0818..2357947 100644
+--- a/t/09google.t
++++ b/t/09google.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 3;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 3;
++}
+ use Test::clive;
+ 
+ Test::clive::host(
+diff --git a/t/10sevenload.t b/t/10sevenload.t
+index 1872e80..b049d7b 100644
+--- a/t/10sevenload.t
++++ b/t/10sevenload.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 5;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 5;
++}
+ use Test::clive;
+ 
+ Test::clive::host(
+diff --git a/t/11redtube.t b/t/11redtube.t
+index 5087f85..7acc9af 100644
+--- a/t/11redtube.t
++++ b/t/11redtube.t
+@@ -3,7 +3,12 @@
+ use warnings;
+ use strict;
+ 
+-use Test::More tests => 1;
++use Test::More;
++if($ENV{NO_INTERNET}) {
++    plan skip_all => "No internet during package build";
++} else {
++    plan tests => 1;
++}
+ use Test::clive;
+ 
+ Test::clive::host(qq|http://www.redtube.com/11573|);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ef12f50
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-internet-tests.patch
diff --git a/debian/rules b/debian/rules
index b8796e6..ba24e10 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,4 +2,4 @@
 # -*- makefile -*-
 
 %:
-	dh $@
+	NO_INTERNET=yes dh --with quilt $@

-- 
Video extraction utility for YouTube, Google Video and other video sites (Debian packaging)



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