summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source/Package/V1.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Source/Package/V1.pm')
-rw-r--r--scripts/Dpkg/Source/Package/V1.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/Dpkg/Source/Package/V1.pm b/scripts/Dpkg/Source/Package/V1.pm
index be13750a4..ff683af21 100644
--- a/scripts/Dpkg/Source/Package/V1.pm
+++ b/scripts/Dpkg/Source/Package/V1.pm
@@ -409,9 +409,11 @@ sub do_build {
$sourcepackage, $tarname);
}
- $self->add_file($tarname) if $tarname;
- if ($tarname and -e "$tarname.sig" and not -e "$tarname.asc") {
- openpgp_sig_to_asc("$tarname.sig", "$tarname.asc");
+ if ($tarname) {
+ $self->add_file($tarname);
+ if (-e "$tarname.sig" and not -e "$tarname.asc") {
+ openpgp_sig_to_asc("$tarname.sig", "$tarname.asc");
+ }
}
if ($tarsign and -e $tarsign) {
info(g_('building %s using existing %s'), $sourcepackage, $tarsign);