Ticket #31205: tardiff-reparent.patch

File tardiff-reparent.patch, 457 bytes (added by fracai, 13 years ago)

Patch to reparent archive contents during comparison

  • tardiff

    old new  
    7373                $flag = "-j";
    7474        }
    7575
    76         my $list = `tar -C $tempdir $flag -xvf $tarball 2>/dev/null`;
     76        my $list = `gnutar -C $tempdir $flag -xvf $tarball 2>/dev/null`;
     77       
     78        my @list = split("\n", $list);
     79        foreach my $line (@list) {
     80        $line =~ s|^|./|g;
     81        $line =~ s|(\./)+|./|g;
     82        }
     83        $list = join("\n", @list);
     84       
    7785        return $list;
    7886}
    7987