summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2007-02-03 01:07:26 +0000
committerJason Woodward2007-02-03 01:07:26 +0000
commit6774275de24b99be75b6ce049208d369589980fc (patch)
tree27554b79b2a5ea9e023f24f47424635889969b40
parent54fb2998a308ecfb2bba701cb3baebaa60c9073c (diff)
downloadcpan2tgz-6774275de24b99be75b6ce049208d369589980fc.tar.gz
fix for Bundle:: and Distribution:: modules
-rw-r--r--Changelog3
-rwxr-xr-xcpan2tgz6
2 files changed, 7 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index 36fa143..d5aca68 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,7 @@
+0.6.2 Feb 02, 2007
+ * Fix for Bundle:: and Distribution:: modules
+
0.6.1 Nov 11, 2006
* /usr/bin permission fix for package build script
diff --git a/cpan2tgz b/cpan2tgz
index c8dd18e..d212b86 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -27,7 +27,7 @@ use CPAN;
use Getopt::Long;
use File::Find ();
-our $VERSION = "0.6.1";
+our $VERSION = '0.6.2';
$ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin";
my (
@@ -91,7 +91,9 @@ sub do_package
my ($module_name) = @_;
return unless $module_name;
- my $module = CPAN::Shell->expand('Module',$module_name);
+ my $module = CPAN::Shell->expand('Module',$module_name)
+ || CPAN::Shell->expand('Bundle',$module_name)
+ || CPAN::Shell->expand('Distribution',$module_name);
unless($module) {
print STDERR "\nFailed to find module: $module_name","\n";
exit(1);