Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #35 from leonardohn/local-crate-fix
Browse files Browse the repository at this point in the history
Fixed local crates being added to ebuild
  • Loading branch information
cardoe authored Jun 18, 2020
2 parents 04fb7ac + 75a2f5b commit 7ce19ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7ce19ef

Please sign in to comment.