Ticket #3730: 3730-0006-extfs-uzip-make-it-testable.patch

File 3730-0006-extfs-uzip-make-it-testable.patch, 971 bytes (added by mooffie, 8 years ago)
  • src/vfs/extfs/helpers/uzip.in

    From 2ddb02fc39563f5fc6893c36423b4afd81ad2783 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sun, 20 Nov 2016 00:25:33 +0200
    Subject: [PATCH 06/11] extfs: uzip: make it testable.
    
    ---
     src/vfs/extfs/helpers/uzip.in | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/vfs/extfs/helpers/uzip.in b/src/vfs/extfs/helpers/uzip.in
    index b1c4f90..beace66 100644
    a b use strict; 
    1717# Location of the zip program 
    1818my $app_zip = "@ZIP@"; 
    1919# Location of the unzip program 
    20 my $app_unzip = "@UNZIP@"; 
     20my $app_unzip = $ENV{MC_TEST_EXTFS_LIST_CMD} || "@UNZIP@"; 
    2121# Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0. 
    22 my $op_has_zipinfo = @HAVE_ZIPINFO@; 
     22my $op_has_zipinfo = $ENV{MC_TEST_EXTFS_HAVE_ZIPINFO} || @HAVE_ZIPINFO@; 
    2323 
    2424# Command used to list archives (zipinfo mode) 
    2525my $cmd_list_zi = "$app_unzip -Z -l -T";