SHA256
1
0
forked from pool/juliaup

- Add 0000-fix-typo.patch

- Automatic update of vendored dependencies

OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=68
This commit is contained in:
Soc Virnyl Estela 2022-12-26 06:22:49 +00:00 committed by Git OBS Bridge
parent 7bf047f169
commit 57f2de2077
4 changed files with 67 additions and 4 deletions

56
0000-fix-typo.patch Normal file
View File

@ -0,0 +1,56 @@
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.")?;

View File

@ -1,5 +1,11 @@
-------------------------------------------------------------------
Sun Dec 18 14:51:39 UTC 2022 - socvirnyl.estela@gmail.com
Mon Dec 26 06:17:39 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Add 0000-fix-typo.patch
- Automatic update of vendored dependencies
-------------------------------------------------------------------
Sun Dec 18 14:51:39 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 1.8.14:
* Update comment

View File

@ -30,6 +30,7 @@ URL: https://github.com/JuliaLang/juliaup
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Patch0: 0000-fix-typo.patch
BuildRequires: cargo-packaging
BuildRequires: rust+cargo
@ -46,7 +47,7 @@ when new Julia versions are released and provides a convenient Julia
release channel abstraction.
%prep
%autosetup -a1
%autosetup -a1 -p1
mkdir .cargo
cp %{SOURCE2} .cargo/config

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:165821010493e592cea54522064885e5d20b78f4eb965816f2c4dc4e875f552a
size 34611944
oid sha256:1271299d502cd84c3c19670636f7d88497b3ed39a13470573264929f3736c521
size 34622316