]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
autogen/rust: remove Cargo.lock 3201/head
authorVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2018 11:20:42 +0000 (12:20 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2018 13:43:52 +0000 (14:43 +0100)
Remove Cargo.lock to avoid issues when updating Cargo.toml

autogen.sh

index 1e15b809aef742edd6ec0cf462a54ed75af1d55d..a40d3f90e8c092ffa9b961db5ec0c5e5fa50f500 100755 (executable)
@@ -11,4 +11,9 @@ else
   exit 1
 fi;
 autoreconf -fv --install || exit 1
+if which cargo > /dev/null; then
+    if [ -f rust/Cargo.lock ] ; then
+        rm -f rust/Cargo.lock
+    fi
+fi;
 echo "You can now run \"./configure\" and then \"make\"."