git: 1e844063dcfd - main - www/deno: Disable upgrade code.

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Wed, 21 Jun 2023 11:35:40 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e844063dcfda0da019d833f38c37073dd5cbd9c

commit 1e844063dcfda0da019d833f38c37073dd5cbd9c
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-06-21 10:20:26 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-06-21 11:35:21 +0000

    www/deno: Disable upgrade code.
    
    Upstream doesn't provide binary for FreeBSD.
    
    Obtained from:  OpenBSD
    Reviewed by:    Val Packett
---
 www/deno/files/patch-cli_tools_upgrade.rs | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/deno/files/patch-cli_tools_upgrade.rs b/www/deno/files/patch-cli_tools_upgrade.rs
new file mode 100644
index 000000000000..0795af6d25b1
--- /dev/null
+++ b/www/deno/files/patch-cli_tools_upgrade.rs
@@ -0,0 +1,11 @@
+--- cli/tools/upgrade.rs.orig	2023-06-21 09:01:25.854955000 +0200
++++ cli/tools/upgrade.rs	2023-06-21 09:02:02.849893000 +0200
+@@ -267,6 +267,8 @@ pub async fn upgrade(
+   flags: Flags,
+   upgrade_flags: UpgradeFlags,
+ ) -> Result<(), AnyError> {
++   #[cfg(target_os = "freebsd")]
++   bail!("Upgrades are not supported on FreeBSD.");
+   let factory = CliFactory::from_flags(flags).await?;
+   let client = factory.http_client();
+   let current_exe_path = std::env::current_exe()?;