Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow higher version of DDG

  • Loading branch information...
commit a5e59b136080e99ff93f84560bceefad6ca31937 1 parent 17c281b
@Getty Getty authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/App/DuckPAN.pm
View
5 lib/App/DuckPAN.pm
@@ -245,8 +245,9 @@ sub check_ddg {
my $module = $packages->package('DDG');
my $latest = $self->duckpan.'authors/id/'.$module->distribution->pathname;
my $installed_version = $self->get_local_ddg_version;
- if ($installed_version && version->parse($installed_version) == version->parse($module->version)) {
- print $module->version;
+ if ($installed_version && version->parse($installed_version) >= version->parse($module->version)) {
+ print $installed_version;
+ print " (duckpan has ".$module->version.")";
} else {
if ($installed_version) {
print "You got ".$installed_version.", latest is ".$module->version."!\n";
Please sign in to comment.
Something went wrong with that request. Please try again.