[dh-make-perl] 03/03: make: skip pristine-tar if there is no known tarball

Damyan Ivanov dmn at alioth.debian.org
Thu Aug 8 13:58:50 UTC 2013


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

dmn pushed a commit to branch master
in repository dh-make-perl.

commit fc0a05d3ed6c4ccf90016af812c6296bc1654a39
Author: Damyan Ivanov <dmn at debian.org>
Date:   Thu Aug 8 15:58:08 2013 +0200

    make: skip pristine-tar if there is no known tarball
    
    Closes: #689476
---
 lib/DhMakePerl/Command/make.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/DhMakePerl/Command/make.pm b/lib/DhMakePerl/Command/make.pm
index 2031f88..c7cb0cb 100644
--- a/lib/DhMakePerl/Command/make.pm
+++ b/lib/DhMakePerl/Command/make.pm
@@ -689,7 +689,7 @@ sub git_add_debian {
             $self->pkgname ),
     ) if $self->cfg->pkg_perl;
 
-    if ( File::Which::which('pristine-tar') ) {
+    if ( File::Which::which('pristine-tar') and $tarball ) {
         $ENV{GIT_DIR} = File::Spec->catdir( $self->main_dir, '.git' );
         system( 'pristine-tar', 'commit', $tarball, "upstream/".$self->version ) >= 0
             or warn "error running pristine-tar: $!\n";

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



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