On Tue, Oct 14, 2003 at 02:16:44PM -0700, Stas Bekman wrote:
> Michael, any idea why the default behavior is to always overwrite META.yml? 
> As more projects will start maintaining it, they all will have to specify 
> NO_META. Shouldn't it be the opposite: overwrite only if explicitly told to?

Ideally it would read in the existing one, update any entries it can
reliably determine the value for, add anything that's missing and
write it out to a new file. If the new files doesn't match the old
then replace it (and die if it's readonly).

Tim.


> -------- Original Message --------
> 
> On Tue, 2003-10-14 at 14:03, Stas Bekman wrote:
> >Philippe M. Chiasson wrote:
> >[...]
> >
> >Do docs say anything about it? If not a bugreport to the makemaker list? 
> >It shouldn't overwrite an existing META.yml, that's for sure.
> 
> The docs seem to document it as a feature:
> 
>        make distdir
>            Copies all the files that are in the MANIFEST file to a newly 
>            cre-
>            ated directory with the name "$(DISTNAME)-$(VERSION)". If that
>            directory exists, it will be removed first.
> 
>            Additionally, it will create a META.yml module meta-data file and
>            add this to your MANFIEST.  You can shut this behavior off with 
>            the
>            NO_META flag.
> 
> I do agree with you, though, that it shouldn't overwrite an existing
> META.yml. Lemme go find out if I ahve the latest EU::MM
> 
> >__________________________________________________________________
> >Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> >http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> >mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> >http://modperlbook.org http://apache.org   http://ticketmaster.com
> -- 
> --------------------------------------------------------------------------------
> Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 
> (122FF51B/C634E37B)
> http://gozer.ectoplasm.org/    F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 
> A5A5
> Q: It is impossible to make anything foolproof because fools are so 
> ingenious.
> perl 
> -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
> 
> 
> -- 
> 
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com


Reply via email to