[Module-build-general] Re: Figuring out signature stuff
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-05-22 14:18:20
|
On Thursday, May 22, 2003, at 01:35 AM, Autrijus Tang wrote: > On Wed, May 21, 2003 at 10:09:44PM -0500, Ken Williams wrote: >> 1) The distdir (e.g. Sample-Module-0.11/ ) is created, including >> a META.yml file inside it >> 2) Module::Signature creates a SIGNATURE file in the distdir, >> scanning >> the contents of the distdir and the MANIFEST inside it >> >> Because it seems like the distribution should be created, then signed. > > This can work, except that MANIFEST need to include SIGNATURE in its > listing. > >> What I'd like to do is to tell Module::Signature what directory to >> create the SIGNATURE file in, which would be the distdir in this case. >> Autrijus, could this happen? Then I'd switch things around in M::B to >> take advantage of it. > > I _think_ the correct way is just to chdir into distdir and sign it. :) Okay, I can do this, but in general it's best to avoid ever doing a chdir(), because if something goes wrong in the middle of an operation you could leave the user in the wrong directory. If in a future version of Module::Signature it becomes possible to sign things in a different directory, I'd be interested in doing it that way. Should be fine this way for now, though. I'll protect it with an eval(). -Ken |