From bd2d46fa6346510e1980bc4c2606972be1672a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20Schr=C3=B6der?= Date: Wed, 21 Oct 2009 12:51:30 +0000 Subject: [PATCH] - strip version from source tag --- Build/Deb.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Build/Deb.pm b/Build/Deb.pm index 349b7d2..afc3c10 100644 --- a/Build/Deb.pm +++ b/Build/Deb.pm @@ -219,7 +219,10 @@ sub query { return undef unless %res; my $name = $res{'PACKAGE'}; my $src = $name; - $src = $res{'SOURCE'} if $res{'SOURCE'}; + if ($res{'SOURCE'}) { + $src = $res{'SOURCE'}; + $src =~ s/\s.*$//; + } my @provides = split(',\s*', $res{'PROVIDES'} || ''); push @provides, "$name = $res{'VERSION'}"; my @depends = split(',\s*', $res{'DEPENDS'} || ''); -- 2.7.4