]> err.no Git - dpkg/commit
Dpkg::Version: Add new function compare_versions
authorFrank Lichtenheld <djpig@debian.org>
Sat, 22 Sep 2007 21:00:44 +0000 (23:00 +0200)
committerFrank Lichtenheld <djpig@debian.org>
Sat, 22 Sep 2007 21:00:44 +0000 (23:00 +0200)
commit8584f930e4085af71cb0b2bfddfde912c35176ac
treeb1b884d7547e1fe8a2c04308f956d0ca0b237729
parentcff7c6ef26150d2c215eaef5ce52d9d75dd4ceb9
Dpkg::Version: Add new function compare_versions

Emulates the dpkg --compare-versions behaviour (Doesn't support
the -nl operators yet, though). This is often easier to write and
read instead of using vercmp directly.

Also add tests for the new function.
scripts/Dpkg/Version.pm
scripts/t/100_Dpkg_Version.t