]> git.donarmstrong.com Git - wannabuild.git/blobdiff - lib/WB/QD.pm
Newer versions of Dpkg::Version export version_compare instead of vercmp.
[wannabuild.git] / lib / WB / QD.pm
index 4c2806fe0cbae72d7d079ea6c16e49488194838f..48ae97902b84e661ff9631f39b171e83af94afbd 100644 (file)
@@ -2,7 +2,12 @@ package WB::QD;
 
 use strict;
 use IO::Uncompress::AnyInflate qw(anyinflate);
-use Dpkg::Version qw(vercmp);
+use Dpkg::Version (); # import nothing
+if ( defined $Dpkg::Version::VERSION ) {
+    *vercmp = \&Dpkg::Version::version_compare;
+} else {
+    *vercmp = \&Dpkg::Version::vercmp;
+}
 use Dpkg::Arch qw(debarch_is);
 use Data::Dumper;