Changeset 3388 in MondoRescue for branches/3.2/mindi/mindi-get-perl-modules
- Timestamp:
- Jun 3, 2015, 11:56:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi-get-perl-modules
r3386 r3388 14 14 use ProjectBuilder::Base; 15 15 use Getopt::Long qw(:config auto_abbrev no_ignore_case); 16 use Module::ScanDeps; 16 17 17 18 =pod … … 64 65 my @includes; 65 66 my $req; 66 my %args;67 68 67 GetOptions( 69 68 "verbose|v+" => \$opts{'v'}, … … 92 91 93 92 # deduplicate entry list 94 if (defined $ARGV[0]) { 95 %args = map { $_, 1 } @ARGV; 96 } else { 93 if (not defined $ARGV[0]) { 97 94 pb_syntax(); 98 95 } … … 109 106 close(TMPF); 110 107 111 foreach my $f (keys %args,"$tmpf") { 112 pb_log(1,"Get perl modules on $f\n"); 113 $req = mr_get_perl_modules($f); 114 foreach my $k (keys %$req) { 115 $files{$k} = $req->{$k}; 116 } 117 pb_log(1,"After mr_get_perl_modules on $f we got:".Dumper(\%files)."\n"); 118 } 108 push @ARGV,$tmpf; 109 110 my $h = scan_deps( 111 files => \@ARGV, 112 recurse => 1, 113 ); 114 119 115 unlink("$tmpf"); 120 116 121 foreach my $f (sort keys %files) { 122 print "$f\n"; 117 pb_log(1,"Returning:"); 118 pb_log(1,Dumper($h)); 119 pb_log(1,"-----------------------\n"); 120 foreach my $f (sort keys %$h) { 121 print "$h->{$f}->{'file'}\n"; 123 122 } 124 123
Note:
See TracChangeset
for help on using the changeset viewer.