summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-05 07:16:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-05 07:16:50 +0000
commita9687a73b79a72ab7525230e8112551caa3dad2d (patch)
tree9d45b416aa14f8b8d3897f96aa2e542ca6b571d3
parent299951315a71edc1b090428714a10671ec2867c7 (diff)
automatic import of bat
-rw-r--r--bat.spec3
-rw-r--r--config28
2 files changed, 1 insertions, 30 deletions
diff --git a/bat.spec b/bat.spec
index 1303e88..276378e 100644
--- a/bat.spec
+++ b/bat.spec
@@ -6,7 +6,6 @@ License: Apache-2.0, MIT
URL: https://github.com/sharkdp/bat
Source0: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz
-Patch0000: config
BuildRequires: cargo
@@ -18,4 +17,4 @@ A cat(1) clone with syntax highlighting and Git integration.
%install
cp config ~/.cargo
-cargo install --locked bat
+cargo install --registry "https://rsproxy.cn/crates.io-index" --locked bat
diff --git a/config b/config
deleted file mode 100644
index cfa20fe..0000000
--- a/config
+++ /dev/null
@@ -1,28 +0,0 @@
-[source.crates-io]
-replace-with = 'rsproxy'
-registry = "https://github.com/rust-lang/crates.io-index"
-
-[source.rsproxy]
-registry = "https://rsproxy.cn/crates.io-index"
-
-[registries.rsproxy]
-index = "https://rsproxy.cn/crates.io-index"
-
-# 中国科学技术大学
-[source.ustc]
-registry = "git://mirrors.ustc.edu.cn/crates.io-index"
-
-# 上海交通大学
-[source.sjtu]
-registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
-
-# 清华大学
-[source.tuna]
-registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
-
-# rustcc社区
-[source.rustcc]
-registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
-
-[net]
-git-fetch-with-cli = true \ No newline at end of file