summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-03-31 07:36:22 +0200
committerGuillem Jover <guillem@debian.org>2014-04-21 07:07:55 +0200
commit82e5f76256237dc9407c8f532befe94307d6d724 (patch)
tree817b97b38cc6540724306c5c3e4f888075c187b9 /scripts
parent76923e8e32be9188cf6236fa1d1e70c280964ceb (diff)
downloaddpkg-82e5f76256237dc9407c8f532befe94307d6d724.tar.gz
scripts: Add a space after comma
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Dpkg/Changelog.pm2
-rw-r--r--scripts/Dpkg/Source/Functions.pm2
-rwxr-xr-xscripts/dpkg-genchanges.pl6
-rwxr-xr-xscripts/dpkg-scanpackages.pl2
-rwxr-xr-xscripts/dpkg-shlibdeps.pl2
-rwxr-xr-xscripts/dpkg-source.pl2
-rw-r--r--scripts/t/200_Dpkg_Shlibs.t2
-rw-r--r--scripts/t/750_Dpkg_Substvars.t4
8 files changed, 11 insertions, 11 deletions
diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm
index 40e0628e8..609cad343 100644
--- a/scripts/Dpkg/Changelog.pm
+++ b/scripts/Dpkg/Changelog.pm
@@ -168,7 +168,7 @@ sub get_parse_errors {
my $res = '';
foreach my $e (@{$self->{parse_errors}}) {
if ($e->[3]) {
- $res .= report(_g('warning'),_g("%s(l%s): %s\nLINE: %s"), @$e );
+ $res .= report(_g('warning'), _g("%s(l%s): %s\nLINE: %s"), @$e);
} else {
$res .= report(_g('warning'), _g('%s(l%s): %s'), @$e);
}
diff --git a/scripts/Dpkg/Source/Functions.pm b/scripts/Dpkg/Source/Functions.pm
index b61d0af02..8f9c50c29 100644
--- a/scripts/Dpkg/Source/Functions.pm
+++ b/scripts/Dpkg/Source/Functions.pm
@@ -33,7 +33,7 @@ sub erasedir {
return if $! == ENOENT;
syserr(_g('cannot stat directory %s (before removal)'), $dir);
}
- system 'rm','-rf','--',$dir;
+ system 'rm', '-rf', '--', $dir;
subprocerr("rm -rf $dir") if $?;
if (not stat($dir)) {
return if $! == ENOENT;
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 9b3b98c1f..881c9401d 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -477,11 +477,11 @@ if (length($fields->{'Binary'}) > 980) {
$fields->{'Binary'} =~ s/(.{0,980}) /$1\n/g;
}
-unshift(@archvalues,'source') unless is_binaryonly;
+unshift @archvalues, 'source' unless is_binaryonly;
@archvalues = ('all') if $include == BUILD_ARCH_INDEP;
-@archvalues = grep {!debarch_eq('all',$_)} @archvalues
+@archvalues = grep { !debarch_eq('all', $_) } @archvalues
unless $include & BUILD_ARCH_INDEP;
-$fields->{'Architecture'} = join(' ',@archvalues);
+$fields->{'Architecture'} = join ' ', @archvalues;
$fields->{'Built-For-Profiles'} = join ' ', get_build_profiles();
diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl
index 51baefc3f..3beab0264 100755
--- a/scripts/dpkg-scanpackages.pl
+++ b/scripts/dpkg-scanpackages.pl
@@ -255,7 +255,7 @@ my @missingover=();
my $records_written = 0;
for my $p (sort keys %packages) {
if (defined($override) and not defined($overridden{$p})) {
- push(@missingover,$p);
+ push @missingover, $p;
}
for my $package (@{$packages{$p}}) {
print("$package\n") or syserr(_g('failed when writing stdout'));
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index ba8d202ce..8443680c6 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -538,7 +538,7 @@ foreach my $field (reverse @depfields) {
# Replace old file by new one
if (!$stdout) {
close($fh) or syserr(_g('cannot close %s'), "$varlistfile.new");
- rename("$varlistfile.new",$varlistfile)
+ rename "$varlistfile.new", $varlistfile
or syserr(_g("install new varlist file \`%s'"), $varlistfile);
}
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index 0770b5ba7..7e96ce189 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -268,7 +268,7 @@ if ($options{opmode} =~ /^(-b|--print-format|--(before|after)-build|--commit)$/)
my $type = $pkg->{'Package-Type'} ||
$pkg->get_custom_field('Package-Type') || 'deb';
push @pkglist, sprintf('%s %s %s %s', $p, $type, $sect, $prio);
- push(@binarypackages,$p);
+ push @binarypackages, $p;
foreach (keys %{$pkg}) {
my $v = $pkg->{$_};
if (m/^Architecture$/) {
diff --git a/scripts/t/200_Dpkg_Shlibs.t b/scripts/t/200_Dpkg_Shlibs.t
index 2c11b8f12..6aaa3eaad 100644
--- a/scripts/t/200_Dpkg_Shlibs.t
+++ b/scripts/t/200_Dpkg_Shlibs.t
@@ -527,7 +527,7 @@ is_deeply(\@tmp, [], 'no LOST symbols if all patterns matched.');
is_deeply(\@tmp, [], 'no NEW symbols if all patterns matched.');
# Pattern resolution order: aliases (c++, symver), generic
-$sym = $sym_file->lookup_symbol('SYMVER_1@SYMVER_1','libpatterns.so.1');
+$sym = $sym_file->lookup_symbol('SYMVER_1@SYMVER_1', 'libpatterns.so.1');
is($sym->{minver}, '1', 'specific SYMVER_1 symbol');
$sym = $sym_file->lookup_symbol('_ZN3NSB6Symver14symver_method1Ev@SYMVER_1', 'libpatterns.so.1');
diff --git a/scripts/t/750_Dpkg_Substvars.t b/scripts/t/750_Dpkg_Substvars.t
index 3021d3408..13397841b 100644
--- a/scripts/t/750_Dpkg_Substvars.t
+++ b/scripts/t/750_Dpkg_Substvars.t
@@ -38,7 +38,7 @@ is($s->get('var4'), undef, 'no var4');
# overriding
$s->set('var1', 'New value');
-is($s->get('var1'), 'New value','var1 updated');
+is($s->get('var1'), 'New value', 'var1 updated');
# deleting
$s->delete('var3');
@@ -53,7 +53,7 @@ is($s->get('dpkg:Version'), $Dpkg::PROGVERSION, 'dpkg version 1');
# special variables
is($s->get('Arch'), undef, 'no arch');
$s->set_arch_substvars();
-is($s->get('Arch'), get_host_arch(),'arch');
+is($s->get('Arch'), get_host_arch(), 'arch');
is($s->get($_), undef, 'no ' . $_) for qw/binary:Version source:Version source:Upstream-Version/;
$s->set_version_substvars('1:2.3.4~5-6.7.8~nmu9', '1:2.3.4~5-6.7.8~nmu9+bin0');