Ticket #3443: mc-4.8.14-xz-compressed-patches.patch

File mc-4.8.14-xz-compressed-patches.patch, 1.2 KB (added by holbru, 7 years ago)
  • misc/mc.ext.in

    diff -Naur mc-4.8.14.orig/misc/mc.ext.in mc-4.8.14/misc/mc.ext.in
    old new  
    216216        Open=%cd %p/patchfs:// 
    217217        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz 
    218218 
     219regex/\.(diff|patch)(\.xz)$ 
     220    Open=%cd %p/patchfs:// 
     221    View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz 
     222 
    219223# ls-lR 
    220224regex/(^|\.)ls-?lR(\.gz|Z|bz2)$ 
    221225        Open=%cd %p/lslR:// 
  • src/vfs/extfs/helpers/patchfs.in

    diff -Naur mc-4.8.14.orig/src/vfs/extfs/helpers/patchfs.in mc-4.8.14/src/vfs/extfs/helpers/patchfs.in
    old new  
    8080    $_=`$fileutil $qfname`; 
    8181    if (/^'*lzma/) { 
    8282        return "$lzma -dc $qfname"; 
    83     } elsif (/^'*xz/) { 
     83    } elsif (/^'*[xz|XZ]/) { 
    8484        return "$xz -dc $qfname"; 
    8585    } elsif (/^'*bzip/) { 
    8686        return "$bzip -dc $qfname"; 
     
    100100    $_=`$fileutil $qfname`; 
    101101    if (/^'*lzma/) { 
    102102        return "$lzma -c $sep $qfname"; 
    103     } elsif (/^'*xz/) { 
     103    } elsif (/^'*[xz|XZ]/) { 
    104104        return "$xz -c $sep $qfname"; 
    105105    } elsif (/^'*bzip/) { 
    106106        return "$bzip -c $sep $qfname";