r56434 - /trunk/dh-make-perl/privinc/My/Builder.pm
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Sun Apr 18 12:43:47 UTC 2010
Author: dmn
Date: Sun Apr 18 12:43:37 2010
New Revision: 56434
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=56434
Log:
hijack the dist action and disable it
Since the primary distribution point is the Debian archive, override
the dist ./Build action with a message explaining where to get the
original source from.
Modified:
trunk/dh-make-perl/privinc/My/Builder.pm
Modified: trunk/dh-make-perl/privinc/My/Builder.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/privinc/My/Builder.pm?rev=56434&op=diff
==============================================================================
--- trunk/dh-make-perl/privinc/My/Builder.pm (original)
+++ trunk/dh-make-perl/privinc/My/Builder.pm Sun Apr 18 12:43:37 2010
@@ -7,7 +7,7 @@
sub ACTION_orig {
my $self = shift;
$self->ACTION_manifest();
- $self->ACTION_dist();
+ $self->SUPER::ACTION_dist();
my $dn = $self->dist_name;
my $ver = $self->dist_version;
my $pkg_name = 'dh-make-perl';
@@ -17,5 +17,23 @@
print "../$pkg_name\_$ver.orig.tar.gz ready.\n";
}
+sub ACTION_dist {
+ warn <<EOF;
+The 'dist' action is usualy used to create a tar.gz to upload to CPAN.
+
+The primary distribution point of dh-make-perl is the Debian archive. If you
+need a tar.gz for CPAN, download the source tarball from Debian. `apt-get
+source --tar-only dh-make-perl' can be used for that.
+
+If you don't happen to run Debian (!), see
+http://packages.debian.org/source/unstable/dh-make-perl
+
+In case you want to upload to Debian and need and .orig.tar.gz, run the
+`orig' action.
+EOF
+
+ return 1;
+}
+
+
1;
-
More information about the Pkg-perl-cvs-commits
mailing list