summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shadura <andrew.shadura@collabora.co.uk>2016-10-17 12:44:56 (GMT)
committerAndrew Shadura <andrew.shadura@collabora.co.uk>2016-10-17 15:13:20 (GMT)
commitfc680f7166d83a0e0d1af5f6330c320c6132bd24 (patch)
treebc48b59335d7486f73d7643b41acded6a12c5ecc
parent872f77567f739de672fa2910e3c2e66d1a80b9ce (diff)
downloadopen-build-service-fc680f7166d83a0e0d1af5f6330c320c6132bd24.tar.gz
open-build-service-fc680f7166d83a0e0d1af5f6330c320c6132bd24.tar.xz
Trim whitespace from $tag and $value.
Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
-rwxr-xr-xsrc/backend/bs_sched3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/bs_sched b/src/backend/bs_sched
index a9823a0..fced91d 100755
--- a/src/backend/bs_sched
+++ b/src/backend/bs_sched
@@ -2705,7 +2705,8 @@ sub jobfinished {
push @phabbugs, /T(\d+)/g if /$v->{'phabprefix'}: *(.*)/;
} else {
my ($tag, $value) = split(':', $_);
- chomp $value;
+ $tag =~ s/^\s+|\s+$//g
+ $value =~ s/^\s+|\s+$//g
if ($tag eq "Source") {
$packageName = $value;
}