Skip to content

Commit

Permalink
fix: handle lack of repository for aptitude
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Mar 4, 2022
1 parent 4235a9d commit 381bbf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/actions/package/providers/aptitude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ impl PackageProvider for Aptitude {
}

fn add_repository(&self, package: &PackageVariant) -> Vec<Step> {
if package.repository.is_none() {
return vec![];
}

let mut steps: Vec<Step> = vec![];

if package.key.is_some() {
Expand Down

0 comments on commit 381bbf8

Please sign in to comment.