From c86f0f7ea8a19807badbec02c73bbf7a168fc60d Mon Sep 17 00:00:00 2001 From: Nicolas Schier Date: Sun, 28 Oct 2018 16:00:01 +0100 Subject: [PATCH] uscan: fix 'uninitialized value' warning in no-matching-refs-warning This patch fixes the dereference of '{download_version}', preventing the annoying Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Devscripts/Uscan/git.pm line 171, line 14. perl warning. Signed-off-by: Nicolas Schier --- lib/Devscripts/Uscan/git.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Devscripts/Uscan/git.pm b/lib/Devscripts/Uscan/git.pm index 69d97990..e02e7117 100644 --- a/lib/Devscripts/Uscan/git.pm +++ b/lib/Devscripts/Uscan/git.pm @@ -170,8 +170,10 @@ sub git_search { } else { uscan_warn "$progname warning: In $self->{watchfile} no matching" - . " refs for version $self->{download_version}" - . " in watch line\n $self->{line}"; + . " refs for version " + . $self->shared->{download_version} + . " in watch line\n " + . $self->{line}; return undef; } -- GitLab