Ticket #4936: ExpanderKeepGzAfterExtraction.patch

File ExpanderKeepGzAfterExtraction.patch, 1.1 KB (added by mmadia, 14 years ago)

replaces ExpanderRules's rule for extracting *.gz

  • src/apps/expander/ExpanderRules.cpp

     
    4545    fList.AddItem(new ExpanderRule("",                              ".tar.Z",   "tar -Ztvf %s",                 "tar -Zxf %s"));
    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"));
    48     fList.AddItem(new ExpanderRule("application/x-gzip",            ".gz",      "echo %s | sed 's/.gz$//g'",    "gunzip %s"));
     48    fList.AddItem(new ExpanderRule("application/x-gzip",            ".gz",      "echo %s | sed 's/.gz$//g'",    "gunzip -c %s > `echo %s | sed 's/.gz$//g'`"));
    4949    fList.AddItem(new ExpanderRule("application/x-bzip2",           ".bz2",     "echo %s | sed 's/.bz2$//g'",   "bunzip2 %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"));