]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/rust-pyo3-build-config
collectd.conf: Fix bug12981 - This creates in and out drop hostile data collection
[ipfire-2.x.git] / lfs / rust-pyo3-build-config
index 54de323c0614ad26b3d3b94a68e57bb211211afa..a274c9803e4c88a9b76648061bc3eb1bb4d90b35 100644 (file)
@@ -73,6 +73,11 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+
+       cd $(DIR_APP) && if [ -f Cargo.toml.orig ]; then \
+               rm -f Cargo.toml.orig; \
+       fi; \
+
        cd $(DIR_APP) && $(CARGO_PREPARE)
        cd $(DIR_APP) && $(CARGO_BUILD)
        cd $(DIR_APP) && $(CARGO_INSTALL)