Skip Menu |

This queue is for tickets about the only CPAN distribution.

Report information
The Basics
Id: 2262
Status: new
Priority: 0/
Queue: only

People
Owner: Nobody in particular
Requestors: spoon [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Thu, 20 Mar 2003 16:48:27 +1100
To: bug-only [...] rt.cpan.org
Subject: doesn't create all paths
From: Iain 'Spoon' Truskett <spoon [...] cpan.org>
When installing, only 0.26 it gave this error: Installing /opt/perl/5.8.0/lib/version/5.8.0/i686-linux/1.44/auto/HTTP/Date/XS/XS.bs Installing /opt/perl/5.8.0/lib/version/5.8.0/i686-linux/1.44/auto/HTTP/Date/XS/XS.so Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /opt/perl/5.8.0/lib/version/5.8.0/i686-linux/1.44/HTTP/Date/XS.pm Installing /opt/perl/5.8.0/lib/version/5.8.0/1.44/HTTP/Date/XS.yaml Can't open /opt/perl/5.8.0/lib/version/5.8.0/1.44/HTTP/Date/XS.yaml for output at /opt/perl/5.8.0/lib/site_perl/5.8.0/only.pm line 393 BEGIN failed--compilation aborted. Hence this patch: diff -Ndurp only-0.26/lib/only/install.pm only-0.26_b/lib/only/install.pm --- only-0.26/lib/only/install.pm 2003-02-27 20:09:03.000000000 +1100 +++ only-0.26_b/lib/only/install.pm 2003-03-20 16:41:50.000000000 +1100 @@ -81,6 +81,9 @@ sub install_meta { print "Skipping $meta_file (unchanged)\n"; } else { + require File::Path; + require File::Basename; + File::Path::mkpath([ File::Basename::dirname($meta_file) ], 1, 0755 ); print "Installing $meta_file\n"; open META, '>', $meta_file or croak "Can't open $meta_file for output\n";