Don't check for cargo-vendor when building from (Debian's) git
authorMatthijs van Otterdijk <matthijs@wirevirt.net>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
Forwarded: not-needed

Forwarded: not-needed
Gbp-Pq: Name d-disable-cargo-vendor.patch

src/bootstrap/dist.rs

index 0c6e21311093ef1ff9df4c559fb1cc8e5c1b3e2c..40d1f2f4c848eba822be0e05cc64c449b57fed89 100644 (file)
@@ -961,7 +961,10 @@ impl Step for PlainSourceTarball {
         }
 
         // If we're building from git sources, we need to vendor a complete distribution.
-        if builder.rust_info.is_git() {
+        //
+        // Debian: disabling this block because the debian package is also in a git
+        //         repository, but cargo-vendor should not be installed or run.
+        if false && builder.rust_info.is_git() {
             // Get cargo-vendor installed, if it isn't already.
             let mut has_cargo_vendor = false;
             let mut cmd = Command::new(&builder.initial_cargo);