This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't remove --tarball
authorAbigail <abigail@abigail.be>
Mon, 19 Mar 2012 13:26:12 +0000 (14:26 +0100)
committerAbigail <abigail@abigail.be>
Mon, 19 Mar 2012 13:26:12 +0000 (14:26 +0100)
By default, the script removes the tarball of the new distributions.
However, if the --tarball option was given (and hence, the file was not
downloaded from CPAN), we opt to keep this file around.

Porting/sync-with-cpan

index df44606..139a5d9 100755 (executable)
@@ -276,7 +276,7 @@ print "About to clean up; hit return or abort (^C) "; <STDIN>;
 
 chdir "cpan";
 system rm => '-r', $old_dir;
 
 chdir "cpan";
 system rm => '-r', $old_dir;
-unlink $new_file;
+unlink $new_file unless $tarball;
 
 
 #
 
 
 #