summaryrefslogtreecommitdiff
path: root/scripts/dpkg-name.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-01-06 20:37:08 +0100
committerGuillem Jover <guillem@debian.org>2013-07-18 05:39:50 +0200
commit89a8da04a92fd3cb913a5e24ff00385a753fd279 (patch)
tree3abf58a21aac02a5c190f1ad28b1e35a4c6dd4db /scripts/dpkg-name.pl
parent840d3d8836ca3712595ce45e17af9dd16818848d (diff)
downloaddpkg-89a8da04a92fd3cb913a5e24ff00385a753fd279.tar.gz
scripts: Do not mix boolean operators
Fixes ValuesAndExpressions::ProhibitMixedBooleanOperators.
Diffstat (limited to 'scripts/dpkg-name.pl')
-rwxr-xr-xscripts/dpkg-name.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dpkg-name.pl b/scripts/dpkg-name.pl
index 85f1d4fce..7f862fa01 100755
--- a/scripts/dpkg-name.pl
+++ b/scripts/dpkg-name.pl
@@ -106,7 +106,7 @@ sub getarch($$)
my ($filename, $fields) = @_;
my $arch = $fields->{Architecture};
- if (!$fields->{Architecture} and $options{architecture}) {
+ if (not $fields->{Architecture} and $options{architecture}) {
$arch = get_host_arch();
warning(_g("assuming architecture '%s' for '%s'"), $arch, $filename);
}
@@ -205,7 +205,7 @@ sub move($)
if (filesame($newname, $filename)) {
warning(_g("skipping '%s'"), $filename);
- } elsif (-f $newname and !$options{overwrite}) {
+ } elsif (-f $newname and not $options{overwrite}) {
warning(_g("cannot move '%s' to existing file"), $filename);
} elsif (system(@command, $filename, $newname) == 0) {
info(_g("moved '%s' to '%s'"), basename($filename), $newname);