diff options
Diffstat (limited to 'sysutils/py-azure-cli/files')
| -rw-r--r-- | sysutils/py-azure-cli/files/patch-azure_cli_command__modules_storage_azcopy_util.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/py-azure-cli/files/patch-azure_cli_command__modules_storage_azcopy_util.py b/sysutils/py-azure-cli/files/patch-azure_cli_command__modules_storage_azcopy_util.py new file mode 100644 index 000000000000..676bcf4e35a4 --- /dev/null +++ b/sysutils/py-azure-cli/files/patch-azure_cli_command__modules_storage_azcopy_util.py @@ -0,0 +1,20 @@ +--- azure/cli/command_modules/storage/azcopy/util.py.orig 2019-12-04 23:30:55 UTC ++++ azure/cli/command_modules/storage/azcopy/util.py +@@ -41,6 +41,8 @@ class AzCopy(object): + file_url = base_url.format('linux', 'tar.gz') + elif self.system == 'Darwin': + file_url = base_url.format('darwin', 'zip') ++ elif self.system == 'FreeBSD': ++ raise CLIError('Azcopy ({}) binary not available, follow instructions at https://wiki.freebsd.org/Ports/sysutils/py-azure-cli'.format(self.system)) + else: + raise CLIError('Azcopy ({}) does not exist.'.format(self.system)) + try: +@@ -163,7 +165,7 @@ def _get_default_install_location(): + if not home_dir: + return None + install_location = os.path.join(home_dir, r'.azcopy\azcopy.exe') +- elif system in ('Linux', 'Darwin'): ++ elif system in ('Linux', 'Darwin', 'FreeBSD'): + install_location = os.path.expanduser(os.path.join('~', 'bin/azcopy')) + else: + install_location = None |
