Ticket #5154: ExpanderKeepBz2AfterExtraction.patch

File ExpanderKeepBz2AfterExtraction.patch, 1.1 KB (added by mmadia, 14 years ago)
  • src/apps/expander/ExpanderRules.cpp

     
    4646    fList.AddItem(new ExpanderRule("",                              ".tgz",     "tar -ztvf %s",                 "tar -zxf %s"));
    4747    fList.AddItem(new ExpanderRule("application/x-tar",             ".tar",     "tar -tvf %s",                  "tar -xf %s"));
    4848    fList.AddItem(new ExpanderRule("application/x-gzip",            ".gz",      "echo %s | sed 's/.gz$//g'",    "gunzip %s"));
    49     fList.AddItem(new ExpanderRule("application/x-bzip2",           ".bz2",     "echo %s | sed 's/.bz2$//g'",   "bunzip2 %s"));
     49    fList.AddItem(new ExpanderRule("application/x-bzip2",           ".bz2",     "echo %s | sed 's/.bz2$//g'",   "bunzip2 -k %s"));
    5050    fList.AddItem(new ExpanderRule("application/zip",               ".zip",     "unzip -l %s",                  "unzip -o %s"));
    5151    fList.AddItem(new ExpanderRule("application/x-zip-compressed",  ".zip",     "unzip -l %s",                  "unzip -o %s"));
    5252    fList.AddItem(new ExpanderRule("application/x-rar",             ".rar",     "unrar v %s",                   "unrar x -y %s"));