Changeset 3108


Ignore:
Timestamp:
May 5, 2013, 4:24:53 AM (6 years ago)
Author:
bruno
Message:

r5244@localhost: bruno | 2013-04-29 00:16:57 +0200

  • Minor improvements for devel version of mondorescue
Location:
devel/mr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/mr/lib/MondoRescue/Base.pm

    r2667 r3108  
    1717use POSIX qw(strftime);
    1818use lib qw (lib);
     19use Digest::MD5;
    1920use ProjectBuilder::Base;
    2021use ProjectBuilder::Conf;
     
    8081open(MD5,"$etcdir/$pbproj.conf.dist.md5") || die "Unable to read mandatory $etcdir/$pbproj.conf.dist.md5: $!";
    8182my $omd5 = <MD5>;
    82 chop($omd5);
     83chomp($omd5);
    8384close(MD5);
    8485open(CONF,"$etcdir/$pbproj.conf.dist") || die "Unable to read mandatory $etcdir/$pbproj.conf.dist: $!";
     
    8687binmode(CONF);
    8788$md5->addfile(CONF);
    88 die "Invalid MD5 found sum for $etcdir/$pbproj.conf.dist: $md5->hexdigest" if ($omd5 ne $md5->hexdigest);
     89my $digest = $md5->hexdigest;
     90die "Invalid MD5 sum found for $etcdir/$pbproj.conf.dist: $digest" if ($omd5 ne $digest);
    8991close(CONF);
    9092
  • devel/mr/lib/MondoRescue/LVM.pm

    r2670 r3108  
    217217# Analyze the existing volume groups
    218218#open(LVM,$lvmcmd."vgdisplay -c |") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgdisplay -c");
    219 open(LVM,$lvmcmd."vgs --noheadings --nosuffix --units m --separator : | -o vg_all") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgs");
     219open(LVM,$lvmcmd."vgs --noheadings --nosuffix --units m --separator : -o vg_all |") || mr_exit(-1,"Unable to execute ".$lvmcmd."vgs");
    220220while (<LVM>) {
    221221
  • devel/mr/sbin/mranalyze-lvm

    r2648 r3108  
    66# $Id$
    77#
    8 # Copyright B. Cornec 2008
     8# Copyright B. Cornec 2008-2012
    99# Provided under the GPL v2
    1010
Note: See TracChangeset for help on using the changeset viewer.