cargo.eclass: force offline operations
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 27 Dec 2019 02:08:20 +0000 (18:08 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Sat, 28 Dec 2019 04:59:09 +0000 (20:59 -0800)
Bug: https://bugs.gentoo.org/697762
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
eclass/cargo.eclass

index 2807bf8069d82a32607e786a1166fdc6b11e877b..f050b0e81ac0c814dc7dde0c6af49e8b6ea7e20c 100644 (file)
@@ -136,6 +136,9 @@ cargo_gen_config() {
        [source.crates-io]
        replace-with = "gentoo"
        local-registry = "/nonexistant"
+
+       [net]
+       offline = true
        EOF
 }