diff options
author | Christoph Biedl <debian.axhn@manchmal.in-ulm.de> | 2017-10-20 01:29:48 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-10-21 17:19:28 +0200 |
commit | db6c5b5043e51c196818c2d24070c089ca9ea1d4 (patch) | |
tree | 139bba01c754baabf96ca87da3396aed1047b145 /scripts/Dpkg/Source | |
parent | adddd73d8bdff96ce5343a03220c37c187bbe8c9 (diff) | |
download | dpkg-db6c5b5043e51c196818c2d24070c089ca9ea1d4.tar.gz |
Dpkg::Source::Package::V1: Check that $tarname is defined before use
Closes: #879124
Warned-by: perl
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/Dpkg/Source')
-rw-r--r-- | scripts/Dpkg/Source/Package/V1.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Source/Package/V1.pm b/scripts/Dpkg/Source/Package/V1.pm index e7748c00f..001d9ecd3 100644 --- a/scripts/Dpkg/Source/Package/V1.pm +++ b/scripts/Dpkg/Source/Package/V1.pm @@ -410,7 +410,7 @@ sub do_build { } $self->add_file($tarname) if $tarname; - if (-e "$tarname.sig" and not -e "$tarname.asc") { + if ($tarname and -e "$tarname.sig" and not -e "$tarname.asc") { openpgp_sig_to_asc("$tarname.sig", "$tarname.asc"); } $self->add_file($tarsign) if $tarsign and -e $tarsign; |