aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeonardo H. Neumann <leonardohn@null.net>2020-06-18 04:49:15 -0300
committerLeonardo H. Neumann <leonardohn@null.net>2020-06-18 04:49:15 -0300
commit75a2f5b83302b7b747cfb41e75d4d9b2adfff92f (patch)
treedbf371a823bee14c3eb16c91a6d2f3fe2b40adfc /src
parent(cargo-release) start next development iteration 0.3.1-alpha.0 (diff)
downloadcargo-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.rs6
1 files changed, 5 insertions, 1 deletions
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<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() {