mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 17:33:19 +01:00
Fix: remove cargo_prep which deletes Cargo.lock
This commit is contained in:
@@ -75,11 +75,6 @@ a notification service, and ability to run in the background.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup
|
||||||
%if %{defined fedora}
|
|
||||||
%cargo_prep
|
|
||||||
sed -i 's|offline = true|offline = false|' .cargo/config.toml
|
|
||||||
sed -i 's|source.crates-io|source.ignore_this|' .cargo/config.toml
|
|
||||||
%else
|
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
cat > .cargo/config.toml << 'EOF'
|
cat > .cargo/config.toml << 'EOF'
|
||||||
[term]
|
[term]
|
||||||
@@ -87,7 +82,6 @@ verbose = true
|
|||||||
[net]
|
[net]
|
||||||
offline = false
|
offline = false
|
||||||
EOF
|
EOF
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%{rustflags}"
|
export RUSTFLAGS="%{rustflags}"
|
||||||
|
|||||||
Reference in New Issue
Block a user