Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 829993
Collapse All | Expand All

(-)/usr/bin/cfg-update.orig (-1 / +1 lines)
Lines 995-1005 Link Here
995
        if ($opt_d >= 1) { print "$tab"."  grep \"$file1_without_host \" $host_path$index_file $debug | cut -d\" \" -f2 $debug\n"; }
995
        if ($opt_d >= 1) { print "$tab"."  grep \"$file1_without_host \" $host_path$index_file $debug | cut -d\" \" -f2 $debug\n"; }
996
        local $ENV{LC_ALL}="C";
996
        local $ENV{LC_ALL}="C";
997
        chomp ($md5sum_index = `grep "$file1_without_host " "$host_path$index_file" $debug | cut -d" " -f2 $debug`);
997
        chomp ($md5sum_index = `grep "$file1_without_host " "$host_path$index_file" $debug | cut -d" " -f2 $debug`);
998
        if ($opt_d >= 1) { print "$tab"."  MD5 checksum in the checksum-index  : $md5sum_index\n"; }
998
        if ($opt_d >= 1) { print "$tab"."  MD5 checksum in the checksum-index  : $md5sum_index\n"; }
999
        if ($md5sum_index =~ /.+/) {
999
        if ($md5sum_index =~ /.+/) {
1000
            if ($md5sum_index !~ $md5sum_file) {
1000
            if (length($md5sum_file) && $md5sum_index !~ $md5sum_file) {
1001
                $state = $state1; $vstate = $vstate1;                               #  1 = MF = Modified File     - checksum differs from index
1001
                $state = $state1; $vstate = $vstate1;                               #  1 = MF = Modified File     - checksum differs from index
1002
                if (-B "$file1") { $state = $state2; $vstate = $vstate2; }          #  2 = MB = Modified Binary   - you probably replaced the binary file so replace not allowed
1002
                if (-B "$file1") { $state = $state2; $vstate = $vstate2; }          #  2 = MB = Modified Binary   - you probably replaced the binary file so replace not allowed
1003
            } else {
1003
            } else {
1004
                $state = $state3; $vstate = $vstate3;                               #  3 = UF = Unmodified File   - checksum matches with index
1004
                $state = $state3; $vstate = $vstate3;                               #  3 = UF = Unmodified File   - checksum matches with index
1005
                if (-B "$file1") { $state = $state4; $vstate = $vstate4; }          #  4 = UB = Unmodified Binary - unmodified binary file so replace always allowed
1005
                if (-B "$file1") { $state = $state4; $vstate = $vstate4; }          #  4 = UB = Unmodified Binary - unmodified binary file so replace always allowed

Return to bug 829993