[Bps-public-commit] r16891 - Shipwright/branches/1.10/lib/Shipwright/Script
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Nov 18 14:47:45 EST 2008
Author: sunnavy
Date: Tue Nov 18 14:47:41 2008
New Revision: 16891
Modified:
Shipwright/branches/1.10/lib/Shipwright/Script/Import.pm
Log:
merged 16890 to 1.1
Modified: Shipwright/branches/1.10/lib/Shipwright/Script/Import.pm
==============================================================================
--- Shipwright/branches/1.10/lib/Shipwright/Script/Import.pm (original)
+++ Shipwright/branches/1.10/lib/Shipwright/Script/Import.pm Tue Nov 18 14:47:41 2008
@@ -45,6 +45,8 @@
sub run {
my $self = shift;
my $source = shift;
+ my $name = shift;
+ $self->name( $name ) if $name && ! $self->name;
my $shipwright = Shipwright->new( repository => $self->repository, );
@@ -375,7 +377,7 @@
=head1 SYNOPSIS
- import SOURCE
+ import SOURCE [NAME]
=head1 OPTIONS
@@ -424,6 +426,9 @@
e.g. cpan:Jifty::DBI cpan:File::Spec
+CAVEAT: we don't support renaming CPAN sources when importing, because it
+*really* is not a good idea and maybe hurt shipwright somewhere.
+
=item File
e.g. L<file:/home/sunnavy/foo-1.23.tar.gz>
More information about the Bps-public-commit
mailing list