r17936 - in /trunk/libmodule-starter-perl/debian: changelog control patches/ patches/die_on_unparseable_arguments patches/series rules

gwolf at users.alioth.debian.org gwolf at users.alioth.debian.org
Sun Mar 23 20:53:03 UTC 2008


Author: gwolf
Date: Sun Mar 23 20:53:02 2008
New Revision: 17936

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17936
Log:
Die when unparseable arguments are presented (#472101)

Added:
    trunk/libmodule-starter-perl/debian/patches/
    trunk/libmodule-starter-perl/debian/patches/die_on_unparseable_arguments
    trunk/libmodule-starter-perl/debian/patches/series
Modified:
    trunk/libmodule-starter-perl/debian/changelog
    trunk/libmodule-starter-perl/debian/control
    trunk/libmodule-starter-perl/debian/rules

Modified: trunk/libmodule-starter-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-starter-perl/debian/changelog?rev=17936&op=diff
==============================================================================
--- trunk/libmodule-starter-perl/debian/changelog (original)
+++ trunk/libmodule-starter-perl/debian/changelog Sun Mar 23 20:53:02 2008
@@ -6,5 +6,7 @@
   [ Gunnar Wolf ]
   * Fixes typo in debian/control (Closes: #472100)
   * Added myself as an uploader
+  * Added build-dependency on quilt
+  * Patching to die on unparseable arguments (Closes: #472101)
 
- -- Gunnar Wolf <gwolf at debian.org>  Sun, 23 Mar 2008 14:40:51 -0600
+ -- Gunnar Wolf <gwolf at debian.org>  Sun, 23 Mar 2008 14:44:59 -0600

Modified: trunk/libmodule-starter-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-starter-perl/debian/control?rev=17936&op=diff
==============================================================================
--- trunk/libmodule-starter-perl/debian/control (original)
+++ trunk/libmodule-starter-perl/debian/control Sun Mar 23 20:53:02 2008
@@ -1,7 +1,7 @@
 Source: libmodule-starter-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 5.0.0)
+Build-Depends: debhelper (>= 5.0.0), quilt
 Build-Depends-Indep: perl (>= 5.8.0-7), libtest-pod-coverage-perl (>= 1.08), libtest-pod-perl (>= 1.22)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jaldhar H. Vyas <jaldhar at debian.org>, Gunnar Wolf <gwolf at debian.org>

Added: trunk/libmodule-starter-perl/debian/patches/die_on_unparseable_arguments
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-starter-perl/debian/patches/die_on_unparseable_arguments?rev=17936&op=file
==============================================================================
--- trunk/libmodule-starter-perl/debian/patches/die_on_unparseable_arguments (added)
+++ trunk/libmodule-starter-perl/debian/patches/die_on_unparseable_arguments Sun Mar 23 20:53:02 2008
@@ -1,0 +1,24 @@
+Index: libmodule-starter-perl/lib/Module/Starter/App.pm
+===================================================================
+--- libmodule-starter-perl.orig/lib/Module/Starter/App.pm	2008-03-23 14:54:08.000000000 -0600
++++ libmodule-starter-perl/lib/Module/Starter/App.pm	2008-03-23 14:56:55.000000000 -0600
+@@ -74,6 +74,7 @@
+       mb           => sub { push @{$config{builder}}, 'Module::Build' },
+       mi           => sub { push @{$config{builder}}, 'Module::Install' },
+ 
++
+       'author=s'   => \$config{author},
+       'email=s'    => \$config{email},
+       'license=s'  => \$config{license},
+@@ -86,6 +87,11 @@
+       help         => sub { pod2usage(1); },
+   ) or pod2usage(2);
+ 
++  if (@ARGV) {
++      pod2usage(-msg =>  "Unparseable arguments received: " . join(', ', @ARGV),
++	       -exitval => 2);
++  }
++
+   $config{class} ||= 'Module::Starter';
+ 
+   $config{builder} = ['ExtUtils::MakeMaker'] unless @{$config{builder}};

Added: trunk/libmodule-starter-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-starter-perl/debian/patches/series?rev=17936&op=file
==============================================================================
--- trunk/libmodule-starter-perl/debian/patches/series (added)
+++ trunk/libmodule-starter-perl/debian/patches/series Sun Mar 23 20:53:02 2008
@@ -1,0 +1,1 @@
+die_on_unparseable_arguments

Modified: trunk/libmodule-starter-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmodule-starter-perl/debian/rules?rev=17936&op=diff
==============================================================================
--- trunk/libmodule-starter-perl/debian/rules (original)
+++ trunk/libmodule-starter-perl/debian/rules Sun Mar 23 20:53:02 2008
@@ -6,6 +6,8 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
 
 # If set to a true value then MakeMaker's prompt function will
 # always return the default without waiting for user input.
@@ -20,7 +22,7 @@
 TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp:
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
 
 	# Add commands to compile the package here
@@ -30,7 +32,7 @@
 
 	touch $@
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 




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