Changeset 3383 in MondoRescue
- Timestamp:
- May 12, 2015, 2:16:38 AM (10 years ago)
- Location:
- branches/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi-get-perl-modules
r3231 r3383 62 62 print "$f\n"; 63 63 } 64 65 exit 0; 64 66 65 67 sub mr_get_perl_modules { … … 101 103 @includes); 102 104 105 # Recurse on what we just found 106 my $found = mr_process_file(keys %files); 107 find( 108 sub { 109 if ((-f $File::Find::name) 110 && (/\.pm$/) 111 && (not defined $files{$File::Find::name})) { 112 foreach my $m (keys %$found) { 113 (my $mod = $m) =~ s|::|/|g; 114 #print "Looking at $mod in $File::Find::name\n"; 115 if (index($File::Find::name,"$mod.pm") ne -1) { 116 $files{$File::Find::name} = $mod; 117 #push @files, $File::Find::name; 118 #print "Found $mod in $File::Find::name\n"; 119 last; 120 } 121 } 122 } 123 }, 124 @includes); 125 126 103 127 return(\%files); 104 128 } 105 129 106 # Adapted From /usr/lib/rpm/ma ndriva/perl.req130 # Adapted From /usr/lib/rpm/mageia/perl.req 107 131 # by Ken Estes Mail.com kestes@staff.mail.com 108 132 # used under the GPL -
branches/3.2/mindi/mr-parted2fdisk
r3377 r3383 223 223 close(CMD); 224 224 chomp($version); 225 # RHEL 5 has fdisk (util-linux 2.13-pre7)225 # RHEL 5 has fdisk from util-linux 2.13-pre7 226 226 # Mageia 4 has fdisk from util-linux 2.24.2 227 227 $version =~ s/[^0-9\.]*([0-9a-z\.-]+)[\)]*$/$1/; -
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3301 r3383 1704 1704 && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?")) { 1705 1705 /* interactive mode */ 1706 mvaddstr_and_log_it(g_currentY, 0, 1707 "Modifying fstab and restoring MBR... "); 1706 mvaddstr_and_log_it(g_currentY, 0, "Modifying fstab and restoring MBR... "); 1708 1707 for (done = FALSE; !done;) { 1709 1708 if (!run_program_and_log_output("which vi", FALSE)) { … … 1738 1737 log_msg(2, "run_raw_mbr() --- command='%s'", command); 1739 1738 1740 mvaddstr_and_log_it(g_currentY, 0, 1741 "Restoring MBR... "); 1739 mvaddstr_and_log_it(g_currentY, 0, "Restoring MBR... "); 1742 1740 res = run_program_and_log_output(command, 3); 1743 1741 mr_free(command); … … 1745 1743 if (res) { 1746 1744 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1747 log_to_screen 1748 ("MBR+fstab processed w/error(s). See %s for more info.", MONDO_LOGFILE); 1745 log_to_screen("MBR+fstab processed w/error(s). See %s for more info.", MONDO_LOGFILE); 1749 1746 } else { 1750 1747 mvaddstr_and_log_it(g_currentY++, 74, "Done.");
Note:
See TracChangeset
for help on using the changeset viewer.