>>>>> On Wed, 19 Apr 2006 07:25:14 +0200, demerphq <[EMAIL PROTECTED]> said:

  > I said this before, but im not sure you saw it, I was thinking that
  > dynamic_config=>1 be done by re-generating the META.yml on the local
  > machine.

I think, for CPAN.pm it's enough to just do this (untested):


Index: lib/CPAN.pm
===================================================================
--- lib/CPAN.pm (revision 717)
+++ lib/CPAN.pm (working copy)
@@ -5378,6 +5378,11 @@
             $CPAN::Frontend->mywarn("Error while parsing META.yml: $@");
             return;
         }
+        if (not exists $self->{yaml_content}{dynamic_content}
+            or $self->{yaml_content}{dynamic_content}
+           ) {
+            $self->{yaml_content} = undef;
+        }
     }
     $self->debug("yaml_content[$self->{yaml_content}]") if $CPAN::DEBUG;
     return $self->{yaml_content};


I'd expect that this should work because CPAN.pm should then follow
the logic without a META.yml or without YAML.pm installed and this
path usually was working well.

-- 
andreas

Reply via email to