diff options
author | Guillem Jover <guillem@debian.org> | 2013-11-07 06:32:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-04 07:09:43 +0100 |
commit | b2590e1ea176bf0c4d04fb855f66e324c8018bb1 (patch) | |
tree | f15fe219fa700c639b42678c69746bfaccdd3179 /scripts/dpkg-genchanges.pl | |
parent | 38d22e9477c3120081c73553138d7f26288a7682 (diff) | |
download | dpkg-b2590e1ea176bf0c4d04fb855f66e324c8018bb1.tar.gz |
perl: Surround FileHandles with braces in print calls
Fixes InputOutput::RequireBracedFileHandleWithPrint.
Warned-by: perlcritic
Diffstat (limited to 'scripts/dpkg-genchanges.pl')
-rwxr-xr-x | scripts/dpkg-genchanges.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index dbc08f194..808218b4a 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -146,11 +146,11 @@ while (@ARGV) { } elsif (m/^-B$/) { usageerr(_g('cannot combine %s and %s'), $_, '-S') if is_sourceonly; $include = ARCH_DEP; - printf STDERR _g('%s: arch-specific upload - not including arch-independent packages') . "\n", $Dpkg::PROGNAME; + printf { *STDERR } _g('%s: arch-specific upload - not including arch-independent packages') . "\n", $Dpkg::PROGNAME; } elsif (m/^-A$/) { usageerr(_g('cannot combine %s and %s'), $_, '-S') if is_sourceonly; $include = ARCH_INDEP; - printf STDERR _g('%s: arch-indep upload - not including arch-specific packages') . "\n", $Dpkg::PROGNAME; + printf { *STDERR } _g('%s: arch-indep upload - not including arch-specific packages') . "\n", $Dpkg::PROGNAME; } elsif (m/^-S$/) { usageerr(_g('cannot combine %s and %s'), binary_opt, '-S') if is_binaryonly; @@ -447,7 +447,7 @@ if (!is_binaryonly) { $origsrcmsg= _g('binary-only upload - not including any source code'); } -print(STDERR "$Dpkg::PROGNAME: $origsrcmsg\n") +print { *STDERR } "$Dpkg::PROGNAME: $origsrcmsg\n" or syserr(_g('write original source message')) unless $quiet; $fields->{'Format'} = $substvars->get('Format'); |