summaryrefslogtreecommitdiffstats
path: root/debian/wheezy/applications/wlassistant
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-04-21 19:42:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-04-21 19:54:57 +0200
commit6e70fa33ca99b1020f68a09481317b854e31de66 (patch)
tree13810e0cd96c7ea9dbbc14e43fefb1500e272728 /debian/wheezy/applications/wlassistant
parent731c5feadab8d86e307b00e3b408b5d5b80b4422 (diff)
downloadtde-packaging-6e70fa33ca99b1020f68a09481317b854e31de66.tar.gz
tde-packaging-6e70fa33ca99b1020f68a09481317b854e31de66.zip
Cutting off the fourth number, or preliminary version number
in counting versions for dependencies on Debian and Ubuntu
Diffstat (limited to 'debian/wheezy/applications/wlassistant')
-rw-r--r--debian/wheezy/applications/wlassistant/debian/cdbs/versions.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/wheezy/applications/wlassistant/debian/cdbs/versions.pl b/debian/wheezy/applications/wlassistant/debian/cdbs/versions.pl
index 9ce11d8a3..75c9add4b 100644
--- a/debian/wheezy/applications/wlassistant/debian/cdbs/versions.pl
+++ b/debian/wheezy/applications/wlassistant/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;