mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-15 22:53:12 +00:00
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com> Co-authored-by: Jia Yuan Lo <jylo06g@gmail.com>
30 lines
892 B
Diff
30 lines
892 B
Diff
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs
|
|
index cb85859f7..891ebb0e2 100644
|
|
--- a/cli/tools/upgrade.rs
|
|
+++ b/cli/tools/upgrade.rs
|
|
@@ -480,6 +480,7 @@ async fn fetch_and_store_latest_version<
|
|
env.write_check_file(&version_file.serialize());
|
|
}
|
|
|
|
+#[cfg(not(target_os = "android"))]
|
|
pub async fn upgrade(
|
|
flags: Arc<Flags>,
|
|
upgrade_flags: UpgradeFlags,
|
|
@@ -612,6 +613,16 @@ pub async fn upgrade(
|
|
Ok(())
|
|
}
|
|
|
|
+#[cfg(target_os = "android")]
|
|
+pub async fn upgrade(
|
|
+ _flags: Arc<Flags>,
|
|
+ _upgrade_flags: UpgradeFlags,
|
|
+) -> Result<(), AnyError> {
|
|
+ log::error!("You are currently using Deno packaged by the Termux repo. Upgrading Deno via CLI will cause an issue to installed Deno. Wait for an update on Deno package in the Termux repo to upgrade.");
|
|
+ deno_runtime::exit(1);
|
|
+}
|
|
+
|
|
+
|
|
#[derive(Debug, PartialEq)]
|
|
enum RequestedVersion {
|
|
Latest(ReleaseChannel),
|