Changeset 98461 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Feb 3, 2023 11:16:23 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r98460 r98461 126 126 /** Whether to handle directories recursively or not. Defaults to \c true. */ 127 127 bool fRecursive; 128 /** The compressor/decompressor method to employ (0, z or j or J). */128 /** The compressor/decompressor method to employ (0, z or j). */ 129 129 char chZipper; 130 130 … … 332 332 RTFSOBJINFO paObjInfo[3], const char *pszDst, PRTERRINFOSTATIC pErrInfo) 333 333 { 334 RT_NOREF(paObjInfo);335 336 334 if (pOpts->fVerbose) 337 335 RTPrintf("%s\n", pszDst); … … 597 595 RTMsgError("Failed to open gzip decompressor: %Rrc", rc); 598 596 break; 599 600 #ifdef IPRT_WITH_LZMA601 /* xz/lzma */602 case 'J':603 rc = RTZipXzCompressIoStream(hVfsIos, 0 /*fFlags*/, 6, &hVfsIosComp);604 if (RT_FAILURE(rc))605 RTMsgError("Failed to open xz compressor: %Rrc", rc);606 break;607 #endif608 597 609 598 /* bunzip2 */ … … 870 859 break; 871 860 872 #ifdef IPRT_WITH_LZMA873 /* xz/lzma */874 case 'J':875 rc = RTZipXzDecompressIoStream(hVfsIos, 0 /*fFlags*/, &hVfsIosDecomp);876 if (RT_FAILURE(rc))877 RTMsgError("Failed to open gzip decompressor: %Rrc", rc);878 break;879 #endif880 881 861 /* bunzip2 */ 882 862 case 'j': … … 1686 1666 " -z, --gzip, --gunzip, --ungzip (all)\n" 1687 1667 " Compress/decompress the archive with gzip.\n" 1688 #ifdef IPRT_WITH_LZMA1689 " -J, --xz (all)\n"1690 " Compress/decompress the archive using xz/lzma.\n"1691 #endif1692 1668 "\n"); 1693 1669 RTPrintf("Misc Options:\n" … … 1772 1748 { "--gunzip", 'z', RTGETOPT_REQ_NOTHING }, 1773 1749 { "--ungzip", 'z', RTGETOPT_REQ_NOTHING }, 1774 #ifdef IPRT_WITH_LZMA1775 { "--xz", 'J', RTGETOPT_REQ_NOTHING },1776 #endif1777 1750 1778 1751 /* other options. */ … … 1867 1840 case 'j': 1868 1841 case 'z': 1869 #ifdef IPRT_WITH_LZMA1870 case 'J':1871 #endif1872 1842 if (Opts.chZipper) 1873 1843 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "You may only specify one compressor / decompressor");
Note:
See TracChangeset
for help on using the changeset viewer.