aboutsummaryrefslogtreecommitdiffstats
path: root/cpan2tgz
diff options
context:
space:
mode:
authorJason Woodward2004-11-16 18:52:04 +0000
committerJason Woodward2004-11-16 18:52:04 +0000
commita110ddda625c2549fb1c3bce73bc00546180457a (patch)
tree11d107c7d11bc8fdc926adf8873c28758630b380 /cpan2tgz
parent55baac7327aa7251b864171b406fe3a036d28611 (diff)
downloadcpan2tgz-a110ddda625c2549fb1c3bce73bc00546180457a.tar.gz
when generating slack-required, list all deps not just the ones that where generated to satisfy current session
Diffstat (limited to 'cpan2tgz')
-rwxr-xr-xcpan2tgz2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpan2tgz b/cpan2tgz
index bd6a3ee..276a910 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -143,7 +143,7 @@ sub do_package {
system("cd $dest_dir && rm build.sh");
# generate the slack-required file
- if( @deps > 0 ){
+ if( scalar(keys %{$pack->prereq_pm()}) > 0 ){
open(my $required_fh,">$dest_dir/install/slack-required") or die "Failed to open slack-required for writing: $!";
# use the hashref here so we can get the version
my $deps = $pack->prereq_pm();