57f2de2077
- Automatic update of vendored dependencies OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=68
57 lines
2.4 KiB
Diff
57 lines
2.4 KiB
Diff
From 81addc626a5995f36f279e37022c354dc2a4fb4c Mon Sep 17 00:00:00 2001
|
|
From: Shayan Davoodi <52105833+shayandavoodii@users.noreply.github.com>
|
|
Date: Sun, 25 Dec 2022 22:42:27 +0330
|
|
Subject: [PATCH] Fix typo `uopdate` => `update` (#536)
|
|
|
|
---
|
|
src/command_selfupdate.rs | 8 ++++----
|
|
src/command_update.rs | 2 +-
|
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/command_selfupdate.rs b/src/command_selfupdate.rs
|
|
index e29d8ff4..93770692 100644
|
|
--- a/src/command_selfupdate.rs
|
|
+++ b/src/command_selfupdate.rs
|
|
@@ -11,7 +11,7 @@ pub fn run_command_selfupdate(paths: &GlobalPaths) -> Result<()> {
|
|
use crate::{get_juliaup_target, get_own_version};
|
|
|
|
update_version_db(paths)
|
|
- .with_context(|| "Failed to uopdate versions db.")?;
|
|
+ .with_context(|| "Failed to update versions db.")?;
|
|
|
|
let mut config_file =
|
|
load_mut_config_db(paths).with_context(|| "`selfupdate` command failed to load configuration db.")?;
|
|
@@ -77,7 +77,7 @@ pub fn run_command_selfupdate(paths: &GlobalPaths) -> Result<()> {
|
|
use windows::{core::Interface,Win32::{System::Console::GetConsoleWindow, UI::Shell::IInitializeWithWindow}};
|
|
|
|
update_version_db(paths)
|
|
- .with_context(|| "Failed to uopdate versions db.")?;
|
|
+ .with_context(|| "Failed to update versions db.")?;
|
|
|
|
let update_manager = windows::Services::Store::StoreContext::GetDefault()
|
|
.with_context(|| "Failed to get the store context.")?;
|
|
@@ -116,6 +116,6 @@ pub fn run_command_selfupdate(paths: &GlobalPaths) -> Result<()> {
|
|
#[cfg(not(any(feature = "windowsstore", feature = "selfupdate")))]
|
|
pub fn run_command_selfupdate(paths: &GlobalPaths) -> Result<()> {
|
|
update_version_db(paths)
|
|
- .with_context(|| "Failed to uopdate versions db.")?;
|
|
+ .with_context(|| "Failed to update versions db.")?;
|
|
Ok(())
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|
|
diff --git a/src/command_update.rs b/src/command_update.rs
|
|
index 502fbcb0..ae2829e3 100644
|
|
--- a/src/command_update.rs
|
|
+++ b/src/command_update.rs
|
|
@@ -50,7 +50,7 @@ fn update_channel(config_db: &mut JuliaupConfig, channel: &String, version_db: &
|
|
|
|
pub fn run_command_update(channel: Option<String>, paths: &GlobalPaths) -> Result<()> {
|
|
update_version_db(paths)
|
|
- .with_context(|| "Failed to uopdate versions db.")?;
|
|
+ .with_context(|| "Failed to update versions db.")?;
|
|
|
|
let version_db =
|
|
load_versions_db(paths).with_context(|| "`update` command failed to load versions db.")?;
|
|
|