Skip to content

Commit

Permalink
find packages by ID or name
Browse files Browse the repository at this point in the history
Fixes #61
  • Loading branch information
TimNN committed Jan 28, 2024
1 parent 6c9a3a2 commit b98ca0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<'a> Meta<'a> {
let mut packages = vec![];

for &name in &package_names {
let package = match meta.packages.iter().find(|p| p.name == name) {
let package = match meta.packages.iter().find(|p| p.id == name || p.name == name) {
Some(p) => p,
None => bail!("No package metadata found for {:?}", name),
};
Expand Down

0 comments on commit b98ca0e

Please sign in to comment.