Changeset 98732 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Feb 25, 2023 6:26:14 PM (22 months ago)
- Location:
- trunk/src/VBox/Runtime/common/zip
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r98462 r98732 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 ). */128 /** The compressor/decompressor method to employ (0, z or j or J). */ 129 129 char chZipper; 130 130 … … 597 597 RTMsgError("Failed to open gzip decompressor: %Rrc", rc); 598 598 break; 599 600 #ifdef IPRT_WITH_LZMA 601 /* 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 #endif 599 608 600 609 /* bunzip2 */ … … 861 870 break; 862 871 872 #ifdef IPRT_WITH_LZMA 873 /* 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 #endif 880 863 881 /* bunzip2 */ 864 882 case 'j': … … 1668 1686 " -z, --gzip, --gunzip, --ungzip (all)\n" 1669 1687 " Compress/decompress the archive with gzip.\n" 1688 #ifdef IPRT_WITH_LZMA 1689 " -J, --xz (all)\n" 1690 " Compress/decompress the archive using xz/lzma.\n" 1691 #endif 1670 1692 "\n"); 1671 1693 RTPrintf("Misc Options:\n" … … 1750 1772 { "--gunzip", 'z', RTGETOPT_REQ_NOTHING }, 1751 1773 { "--ungzip", 'z', RTGETOPT_REQ_NOTHING }, 1774 #ifdef IPRT_WITH_LZMA 1775 { "--xz", 'J', RTGETOPT_REQ_NOTHING }, 1776 #endif 1752 1777 1753 1778 /* other options. */ … … 1842 1867 case 'j': 1843 1868 case 'z': 1869 #ifdef IPRT_WITH_LZMA 1870 case 'J': 1871 #endif 1844 1872 if (Opts.chZipper) 1845 1873 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "You may only specify one compressor / decompressor");
Note:
See TracChangeset
for help on using the changeset viewer.