From 6e70fa33ca99b1020f68a09481317b854e31de66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 21 Apr 2013 19:42:09 +0200 Subject: Cutting off the fourth number, or preliminary version number in counting versions for dependencies on Debian and Ubuntu --- ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl') diff --git a/ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl b/ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl index 9ce11d8a3..75c9add4b 100644 --- a/ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl +++ b/ubuntu/maverick/applications/kpilot/debian/cdbs/versions.pl @@ -7,7 +7,7 @@ my $version = `dpkg-parsechangelog | awk '/^Version/ {print \$2}'`; my ($version3, $version3_next); my ($version2, $version2_next); -($version3 = $version) =~ s/-[^-]+$//; +($version3 = $version) =~ s/^(([^.]+\.){2}[^.+~-]+)[.+~-]?[^-]*-[^-]+$/$1/; ($version2 = $version3) =~ s/\.[^.]+$//; ($version3_next = $version3) =~ s/(?<=\.)(\d+)[a-z]?$/($1+1)/e; -- cgit v1.2.1