diff options
author | Leonardo H. Neumann <leonardohn@null.net> | 2020-06-18 04:49:15 -0300 |
---|---|---|
committer | Leonardo H. Neumann <leonardohn@null.net> | 2020-06-18 04:49:15 -0300 |
commit | 75a2f5b83302b7b747cfb41e75d4d9b2adfff92f (patch) | |
tree | dbf371a823bee14c3eb16c91a6d2f3fe2b40adfc /src | |
parent | (cargo-release) start next development iteration 0.3.1-alpha.0 (diff) | |
download | cargo-ebuild-75a2f5b83302b7b747cfb41e75d4d9b2adfff92f.tar.gz cargo-ebuild-75a2f5b83302b7b747cfb41e75d4d9b2adfff92f.tar.bz2 cargo-ebuild-75a2f5b83302b7b747cfb41e75d4d9b2adfff92f.zip |
fixed local crates being added to ebuild
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -55,7 +55,11 @@ pub fn gen_ebuild_data(manifest_path: Option<PathBuf>) -> Result<EbuildConfig> { 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() { |