Changeset 3388 in MondoRescue
- Timestamp:
- Jun 3, 2015, 11:56:04 PM (10 years ago)
- Location:
- branches/3.2/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3386 r3388 2819 2819 mkdir -p $MINDI_TMP 2820 2820 2821 # Purge from potential old run2822 if [ _"$MINDI_CACHE" = _"" ]; then2823 Die "MINDI_CACHE undefined"2824 fi2825 2826 2821 # --nolog needs to be first, and is used in analyze-my-lvm 2827 2822 if [ "$1" = "--nolog" ] ; then … … 2855 2850 LogFile "MINDI_SBIN = $MINDI_SBIN" 2856 2851 LogFile "MINDI_CONF = $MINDI_CONF" 2852 # Purge from potential old run 2853 if [ _"$MINDI_CACHE" = _"" ]; then 2854 Die "MINDI_CACHE undefined" 2855 else 2856 LogFile "MINDI_CACHE = $MINDI_CACHE" 2857 fi 2858 2857 2859 if [ -f $MINDI_CONFIG ]; then 2858 2860 LogFile "-----------------------------" … … 3174 3176 # This is the scratch dir in mondo - subdir images 3175 3177 MINDI_CACHE=$3 3178 LogFile "MINDI_CACHE = $MINDI_CACHE" 3176 3179 3177 3180 kernelpath=$4; [ "$kernelpath" = "(null)" ] && kernelpath="" -
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.