# - wine is used to execute Win32 apps except on Cygwin.
-# - ar, cabextract, unrar, unzip, and 7z are needed by some verbs.
+# - cabextract, unrar, unzip, and 7z are needed by some verbs.
# - aria2c, wget, curl, or fetch is needed for downloading.
# - fuseiso, archivemount (Linux), or hdiutil (macOS) is used to mount .iso images.
# - perl is used for displaying download progress for wget when using zenity
@@ -709,27 +709,6 @@ w_try_7z()
fi
}
-w_try_ar()
-{
- # $1 - ar file (.deb) to extract (keeping internal paths, in cwd)
- # $2 - file to extract (optional)
-
- # Not always installed, use Windows 7-zip as a fallback:
- if [ -z "${WINETRICKS_FORCE_WIN_7Z}" ] && [ -x "$(command -v ar 2>/dev/null)" ]; then
- w_try ar x "$@"
- else
- w_warn "Cannot find ar. Using Windows 7-zip instead. (You can avoid this by installing binutils, e.g. 'sudo apt install binutils' or 'sudo yum install binutils')."
- WINETRICKS_OPT_SHAREDPREFIX=1 w_call 7zip
-
- # w_call above will wipe $W_TMP; if that's the CWD, things will break. So forcefully reset the directory:
- w_try_cd "${PWD}"
-
- # -t* prevents 7-zip from decompressing .tar.xz to .tar, see