From 75a2f5b83302b7b747cfb41e75d4d9b2adfff92f Mon Sep 17 00:00:00 2001 From: "Leonardo H. Neumann" Date: Thu, 18 Jun 2020 04:49:15 -0300 Subject: fixed local crates being added to ebuild --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2eff106..2ee9cf3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,11 @@ pub fn gen_ebuild_data(manifest_path: Option) -> Result { root_pkg = Some(pkg.clone()); } - crates.push(format!("{}-{}\n", pkg.name, pkg.version)); + if let Some(src) = pkg.source { + if src.is_crates_io() { + crates.push(format!("{}-{}\n", pkg.name, pkg.version)); + } + } if let Some(lic_list) = pkg.license.as_ref().map(|l| parse_license(&l)) { for lic in lic_list.iter() { -- cgit v1.2.3-65-gdbad