[lintian] 01/03: Replace uses of s/// that could be m//
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 2c239dda5c5279ebd95489cd4dce0bfcda6b525e
Author: Niels Thykier <niels@thykier.net>
Date: Sat Aug 13 19:22:25 2016 +0000
Replace uses of s/// that could be m//
Signed-off-by: Niels Thykier <niels@thykier.net>
---
commands/reporting-lintian-harness.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commands/reporting-lintian-harness.pm b/commands/reporting-lintian-harness.pm
index 979b76b..ca46211 100644
--- a/commands/reporting-lintian-harness.pm
+++ b/commands/reporting-lintian-harness.pm
@@ -332,13 +332,13 @@ sub process_worklist {
# Listen to status updates from lintian
while (my $line = <$status_fd>) {
chomp($line);
- if ($line =~ s/^complete ([^ ]+) \(([^\)]+)\)$//) {
+ if ($line =~ m/^complete ([^ ]+) \(([^\)]+)\)$/) {
my ($group_id, $runtime) = ($1, $2);
push(@completed, $group_id);
$processed{$group_id} = 1;
log_msg(" [lintian] processed $group_id"
. " successfully (time: $runtime)");
- } elsif ($line =~ s/^error ([^ ]+) \(([^\)]+)\)$//) {
+ } elsif ($line =~ m/^error ([^ ]+) \(([^\)]+)\)$/) {
my ($group_id, $runtime) = ($1, $2);
log_msg(" [lintian] error processing $group_id "
. "(time: $runtime)");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: