cargo.eclass: require rust 1.37 or newer unconditionally
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 27 Dec 2019 02:07:05 +0000 (18:07 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Sat, 28 Dec 2019 04:59:09 +0000 (20:59 -0800)
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
eclass/cargo.eclass

index fb759f95903f2144c454d2ad6dbccf61afe68ffa..2807bf8069d82a32607e786a1166fdc6b11e877b 100644 (file)
 if [[ -z ${_CARGO_ECLASS} ]]; then
 _CARGO_ECLASS=1
 
-if [[ ${PV} == *9999* ]]; then
-       # we need at least this for cargo vendor subommand
-       CARGO_DEPEND=">=virtual/cargo-1.37.0"
-else
-       CARGO_DEPEND="virtual/cargo"
-fi
+# we need this for 'cargo vendor' subcommand and net.offline config knob
+CARGO_DEPEND=">=virtual/cargo-1.37.0"
 
 case ${EAPI} in
        6) DEPEND="${CARGO_DEPEND}";;