diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-04-21 19:42:09 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-04-21 20:10:29 +0200 |
commit | 2c449d7170cba88f012c1745a86abcd0524a4aaa (patch) | |
tree | bd19cd91c4eb432c7c2bdb57a243c78d23eee714 /ubuntu/maverick/applications/gtk-qt-engine | |
parent | 0e28c6babba67d147d47101048d1c3b7aa22f495 (diff) | |
download | tde-packaging-2c449d7170cba88f012c1745a86abcd0524a4aaa.tar.gz tde-packaging-2c449d7170cba88f012c1745a86abcd0524a4aaa.zip |
Cutting off the fourth number, or preliminary version number
in counting versions for dependencies on Debian and Ubuntu
(cherry picked from commit 6e70fa33ca99b1020f68a09481317b854e31de66)
Diffstat (limited to 'ubuntu/maverick/applications/gtk-qt-engine')
-rw-r--r-- | ubuntu/maverick/applications/gtk-qt-engine/debian/cdbs/versions.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubuntu/maverick/applications/gtk-qt-engine/debian/cdbs/versions.pl b/ubuntu/maverick/applications/gtk-qt-engine/debian/cdbs/versions.pl index 9ce11d8a3..75c9add4b 100644 --- a/ubuntu/maverick/applications/gtk-qt-engine/debian/cdbs/versions.pl +++ b/ubuntu/maverick/applications/gtk-qt-engine/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; |