Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created Mar 5, 2014
Embed
What would you like to do?
diff --git a/lib/App/cpanminus/script.pm b/lib/App/cpanminus/script.pm
index ce96a2b..36aaeab 100644
--- a/lib/App/cpanminus/script.pm
+++ b/lib/App/cpanminus/script.pm
@@ -516,7 +516,8 @@ sub version_to_query {
if ($req =~ s/^==\s*//) {
return {
- term => { 'module.version' => $req },
+# term => { 'module.version' => $req },
+ term => { 'module.version_numified' => $self->numify_ver($req) },
};
} elsif ($req !~ /\s/) {
return {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment