Commit 0dda4670 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: cargo support: remove binaries from definitely unused packages

parent f986c9e8
...@@ -500,10 +500,14 @@ update_predownloaded() ...@@ -500,10 +500,14 @@ update_predownloaded()
$RUNHOOK $RGD/.gear/predownloaded-postinstall-hook $MODE $VERSION $RUNHOOK $RGD/.gear/predownloaded-postinstall-hook $MODE $VERSION
fi fi
info "Removing binaries (see https://github.com/rust-lang/cargo/issues/6179) ..." # TODO: can't just remove binaries (it is checked)
find vendor -name "*.a" -type f -delete -print info "Check news about windows target: https://github.com/rust-lang/cargo/issues/6179"
find vendor -name "*.so" -type f -delete -print #find vendor -name "*.a" -type f -delete -print
find vendor -name "*.dll" -type f -delete -print #find vendor -name "*.so" -type f -delete -print
#find vendor -name "*.dll" -type f -delete -print
# can remove binaries from definitely unused packages
rm -rv vendor/winapi-*-pc-windows-gnu/lib/*.a
# drop all exclude vendor # drop all exclude vendor
# TODO: correct .* removing # TODO: correct .* removing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment